Platforms spawning out of reach (Doodle Jump clone)
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.
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