Hi.
On start of layout i want to randomly spawn 1 out of 3 sprites, stay for random 5-10 seconds, then destroy it and instantly spawn again 1 of the 3 sprites an so on.
I also want ONLY 1 of the 3 sprites to be on screen at any given time.
Im sure its something very simple but i struggle for 3h now and getting no results.
Thanks in advance. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
Check this example game I made for you, dimitriosfl.
https://www.dropbox.com/s/vr84dgx18m4fd ... .capx?dl=0
This is what's happening in the game
1. There are 3 UFOs; Red, Green and Blue.
2. Only one of three are randomly spawned in every 3 to 5 seconds upon destruction.
3. UFOs can be destroyed by Player's plasma projectile or when it goes out of the layout screen.
4. When you press [Space], you'll be able to shoot a projectile to destroy UFOs.
5. When a UFO gets hit by the Player's bullet, it will explode.
6. Player can freely move around on the map but limited to the layout.
7. Only one UFO will spawn per screen, and the next will spawn only when the previous one gets destroyed.
Technical explanation
1. Double click the UFO sprite.
2. Notice there are 3 animation frames.
3. Notice animation speed is set to 0.
4. Frame #1 is Red, Frame #2 is Green and the last frame is Blue.
5. Go to Event Sheet and look at Line 1.
6. It says Set Frame - random(3).
7. This means we're requesting Construct 2 to spawn a random UFO out of 3 possible choices. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">