Random spawn only once
kiwaci
Member, PRO Posts: 72
so, i'm making an endless game and i have 3 power-ups and what i want is to spawn randomly one of these power-ups once, then respawn a different one after 10sec ,so on.Can anyone please help me.
Thanks
Thanks
Comments
When attribute game.random=1
[spawn actor 1]
When attribute game.random=2
[spawn actor 2]
When attribute game.random=3
[spawn actor 3]
Timer every 10 seconds
Change attribute game.random (integer) to random(1,3)
When attribute game.random=1
[spawn actor 1]
When attribute game.random=2
[spawn actor 2]
When attribute game.random=3
[spawn actor 3]
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User