How to create endless randomly spawning platforms within a scene ?[Solved]

oscarkim

  • Posts: 28
Hey I am currently working on a platformer-type game whereby a player controls a character while creating platforms at the same time. Everything works well until the create button is pressed when the last created platform is halfway into the scene after which the create event I have put together  does not work once the button is pressed again. I need help around this. So far I am trying to find length of last created actor and trying to make a Boolean that determines if ( x-position of the end of last created actor is less than scene width) is  true or false.

« Last Edit: March 22, 2015, 11:08:50 am by oscarkim »

oscarkim

  • Posts: 28
Just figured it out -  sort of.  Used If (  ( x-centre of last created actor + width of self) < screen width :)