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.
Thanks for any advice you can offer.
<img src="smileys/smiley1.gif" border="0" align="middle">
I don't really understand I tried your Capx and it seems to work for me....
The problem is due to TriggerOnceWhiletrue condition, try to find another condition to trigger just once a time the block creation
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!
Develop games in your browser. Powerful, performant & highly capable.
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" />
Could anyone take a look at my capx please, and let me know where I'm going wrong.
<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.
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!