Hey guys! Another day, another doubt :)
A few days ago a topic I posted here helped me spawn some powerups on my game. Everything worked just fine! But today I implemented another spawn and things went a little weird. I'm gonna show my event sheet and then explain my problem.
So, as you can see, everytime the "pillar_up" is created, it chooses a number between 1 and 9 and set it on the "spawn_selector" variable. After that, depending on the number selected, something will spawn on the pillar. If it chooses 1, it'll spawn the Bigger Gaps powerup, if it chooses 2, the God Mode powerup, 3 the Slow Time powerup, and any other value (greater or equal to 4) it should spawn the coin. But... sometimes nothing spawns at all. Even though every pillar should have something spawned, sometimes the character passes through like 5 pillars with nothing spawned.
Any thoughts? :)
P.S: the game is a side scroller (a flappy bird like game).