How to spawn actor from outside the scene ?

Jugoslav85Jugoslav85 Member, PRO Posts: 36

This is my first question on this forum, i hope someone can help me. I would like to spawn an actor so it can move toward the centre of the screen. I have made the actor to spawn from random locations (ex. random(-50,850) for X and random(-50,1100) for Y). The actor is made to Move Toward the centre of the scene. The problem is that in this way, they do spawn from outside the screen and move to the centre, but also spawn from inside and arrive to the centre very fast.

What should i do so they can only spawn from outside the scene ?

Best Answer

  • UtopianGamesUtopianGames Posts: 5,692
    edited March 2014 Accepted Answer

    File attached i made 2 spawners one for left and right and one for top and bottom and used the device size width to spawn at actors position.

    Darren.

Answers

  • Jugoslav85Jugoslav85 Member, PRO Posts: 36

    This is exactly what i was looking for, now i will have to see how to make this work on my app.

    Thanks a lot for this quick answer !!!!

Sign In or Register to comment.