Spawn Actors Randomly from the Bottom of the Screen
agbeyeid
Member Posts: 18
I'm new to gamesalad and I'm trying to create my first game but I'm stuck. I don't know how to spawn a character from the bottom of the screen to move upwards
Comments
Make an actor ('S') which will be the spawner.
Make an actor ('A') which is the actor that you want to spawn.
Give actor S a Spawn behaviour, tell it to spawn actor A, tell it to spawn at whatever x position you want - and set the Y position to 0 (the bottom of the screen) - make the position settings relative to 'scene'.
Place actor S into the scene (anywhere you want, even off the scene, out of view)
Right, now S will spawn actor A at the bottom of the scene.
Now give actor A an accelerate behaviour, set the Direction to 90° (up) and make it relative to 'scene'.
Ok, now S will spawn actor A at the bottom of the scene, and actor A will move upwards.
Thanks
It worked
But I want to to continue spawning not just once
Take the Spawn behaviour in the S actor and place it into a Timer, set the timer on Every X seconds.
Thanks again> @Socks said:
Thanks again