Random powerup with one object

Hi I’m making a shooter game and now I trying to made a powerup system exactly like the game “Contra” If I touch a object are 3 powerups that can appear but I don’t now to randomize that any suggestions?

Use RandomInRange
For example
When you destroy something for powerup to appear
You set variable called RNG to RandomInRange(0,2)
Trigger once

Now in event below it you make so that if variable RNG is equal to 0
You create powerup A
If that varabiel is equal to 1
You create powerup B
And so go on

1 Like

Thank’s so much it works!