Platforms spawning out of reach (Doodle Jump clone)

deadlightsdeadlights Member, PRO Posts: 235
edited April 2012 in Working with GS (Mac)
Hey all,

I'm working on a Doodle Jump type game. Sometimes (seemingly randomly), the platforms spawn out of reach of the hero. This should obviously not happen!

Right now, I've got a "resetter" actor at the bottom that spawns new platforms at position 960 when old platforms go off-screen. When my platforms collide with the resetter, this happens:

Change Attribute SELF.POSITION.Y To GAME.DISPLAY SIZE.HEIGHT *2 + SELF.SIZE.HEIGHT

Can anyone point me in the right direction? I can't figure out why sometimes they spawn out of reach. Thanks in advance.

Answers

  • deadlightsdeadlights Member, PRO Posts: 235
    Thanks for the fast response! I'm going to compare this to my project and see where I've gone wrong. I appreciate your help.
Sign In or Register to comment.