Auto spawn new platforms

0 favourites
  • 8 posts
From the Asset Store
A pack of 76 platform designs for a platformer game with a mushroom/jungle theme
  • Hi all,

    I'm making an endless runner, and I'm trying to use sprites to indicate when blocks should be created or destroyed.

    I set up a for each loop to check the position of each block, and spawn or destroy blocks dependent upon there positions compared to the 'startline' and 'endline' sprites.

    Problem is, I only ever get a few new blocks spawning, and then nothing! Can anyone tell me where I'm going wrong? I've added a capx, and my block spawn and destroy events are numbers 5, 6 and 7.

    Runner.capx

    Thanks for any advice you can offer.

    <img src="smileys/smiley1.gif" border="0" align="middle">

  • Pantaloons

    I don't really understand I tried your Capx and it seems to work for me....

  • Pantaloons

    The problem is due to TriggerOnceWhiletrue condition, try to find another condition to trigger just once a time the block creation

  • beufreecasse,

    Strange that it works fine for you, I only ever seem to get a 3-4 blocks then nothing?

    I'll try to find another trigger for the block creation.

    Thanks for the help!

  • Hey All,

    Been trying to work out why my game isn't spawning more than 3-4 platforms, but still no luck.

    Tried to find another trigger as per beufreecasse 's suggestion, but no luck there either.

    I'd really like to try and understand just why my current events aren't working properly?

    Can anybody help please.

    <img src="smileys/smiley5.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
  • Bump,

    Could anyone take a look at my capx please, and let me know where I'm going wrong.

    Thanks

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • For one, why do the blocks have the bullet behavior? They should just be platforms. Your custom controller for the Platformer sprite will handle the moving.

  • Tekniko,

    Thanks for the advice.

    The example is C2's stock 'Autorunner' starter project example, so the platforms already had the bullet behavior attached to them.

    And I'm not really sure that this behavior is what's causing the problems I'm experiencing, but thanks anyway!

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