GameSalad

How to make a coin spawn in a row?

Hey,

I have been trying to get coins to spawn in a row. Something like this. I tried to use timers to trigger the spawn but either they don't stop spawning or they don't spawn at all

https://nsx.np.dl.playstation.net/nsx/material/5/549e1c6e544347cd4951d8cef806bc78541aa51b-996400.jpg

Comments

  • awesome_wellsawesome_wells Posts: 30Member, PRO

    Hi @raandm17,

    I've attached an example of one way you can do it. I set a 'Coin Spawner' actor that contains a 'Spawn switch' boolean attribute.

    When the boolean is 'true' then a 'Coin' actor spawns every 0.25 seconds

    The 'Coin Spawner' boolean switches between true and false every 5 seconds.

    The Y position of the Spawner (and therefore the Y position coins that spawn) moves every 1.5 seconds.

    The result is something similar to the example you give.

    I hope that helps!

Sign In or Register to comment.