Page 7 of 9
Re: So, uh, now what?
Posted: Sun Jun 21, 2009 10:25 pm
by Jesusfreak
Ok, next I was thinking I should add an enemy that fires back at you. How would I create an object that intentionally targets another object (ie, the player)?
Re: So, uh, now what?
Posted: Mon Jun 22, 2009 1:32 am
by Warriorccc0
There should be a action that lets a object move towards another object, should be able to put that in the create event with the speed you want.
Re: So, uh, now what?
Posted: Mon Jun 22, 2009 3:13 pm
by Jesusfreak
Ok... how do I make it create an object randomly at a random location?
Ah, I've got an idea, what if I just made a few invisible objects that went through everything except walls and eachother, and had the game create the thing every time a pair of them collided?
Re: So, uh, now what?
Posted: Mon Jun 22, 2009 4:48 pm
by Sakar
Or you could also create an object, use Move Fixed to make it start moving in a direction, and Jump To Random to spawn it in a random spot. For spawning it at random times you can have a Chance check and if it is successful then spawn the object, otherwise do nothing

Re: So, uh, now what?
Posted: Mon Jun 22, 2009 5:49 pm
by Jesusfreak
Hmm, yes, that would work too, but what action would I use to tell it when to be created? Is there a timer function or something I can use?
Re: So, uh, now what?
Posted: Mon Jun 22, 2009 6:42 pm
by Warriorccc0
use the chance check on a instance create, for the x and y spots use "random(room_width)" and "random(room_height)", respectively.
Re: So, uh, now what?
Posted: Tue Jun 23, 2009 12:15 pm
by Jesusfreak
That... doesn't answer my question at all o_O.
What do I put HERE?
Re: So, uh, now what?
Posted: Tue Jun 23, 2009 3:17 pm
by Warriorccc0
Create event? Assuming your talking about the randomly spawning.
Re: So, uh, now what?
Posted: Tue Jun 23, 2009 3:26 pm
by Jesusfreak
Ok, tried it, the "Create" event didn't do anything... I think "Create" event makes the event trigger when the object is created, which it hasn't been created yet... hmm...
Re: So, uh, now what?
Posted: Tue Jun 23, 2009 3:48 pm
by Warriorccc0
Well ya, what way are you trying to do?
If your doing it my way, then you need to just use some kind of controller object.