Spawn Actors Randomly from the Bottom of the Screen

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

  • SocksSocks London, UK.Member Posts: 12,822

    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.

  • agbeyeidagbeyeid Member Posts: 18

    Thanks
    It worked

  • agbeyeidagbeyeid Member Posts: 18

    But I want to to continue spawning not just once

  • SocksSocks London, UK.Member Posts: 12,822

    @agbeyeid said:
    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.

  • agbeyeidagbeyeid Member Posts: 18

    Thanks again> @Socks said:

    @agbeyeid said:
    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

Sign In or Register to comment.