Randomly spawn platforms (correctly)

0 favourites
  • 4 posts
  • Hi Guys,

    I started with the infinite jumping template and have modified it to reverse (instead of jumping up your "Drop" down)

    I have been struggling to make the platforms randomly spawn correctly at the bottom of the screen. Its driving me nuts <img src="smileys/smiley18.gif" border="0" align="middle" />

    I am also having an issue where if you stand on a platform for long enough, you will stop half way up. The platforms then start randomly spawning (the don't start before).

    I'm guessing that it has something to do with the MinScroll global variable but for the life of me I cant seem to work it out. Hence turning to you lovely guys in the community. <img src="smileys/smiley2.gif" border="0" align="middle" />

    Here is a link to the (not very) playable state of the current game: ultimatekarnage.com/gamedev/dropping

    Here is my Capx file: dl.dropbox.com/u/3472032/DROP.zip

    Any help would be greatly appreciated! :) Thank you in advance!

  • *Polite Bump* (Still stuck   <img src="smileys/smiley6.gif" border="0" align="middle" /> )

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I played a bit with the capx; i'm in a hurry so it's not perfect but hopefully it will point you in some direction:

    Platforms will start apearing beneath you, but you'll have to tweak the code more to make it smooth!

    Here's the .capx


  • Hey, Thanks very much Johnny!!! Nice work, I can see where I went wrong now lol <img src="smileys/smiley17.gif" border="0" align="middle" />

    Now to tighten it up - Thats some crazy effect when falling down the side lol :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)