I would like to have the enemies in my shooter drop items like 10% of the time.
Currently, enemy death is an "if enemylife <= 0 then" event.
I was thinking something like "if lootroll=x then create x object" with blank sprites set to fade for no loot. Is this possible? Or do I need to
rethink my enemy death event?
Develop games in your browser. Powerful, performant & highly capable.
I made this example for someone asking a similar question about drop chances a few weeks a go, hope it helps.
How are you chaining the events like that?
E: OMG add sub-event, this changes everything
Sub-events can be created by right-clicking an event and selecting "Add new sub-event", or you could drag an already made event (child) to the bottom of another (parent) with the mouse, and it will become a sub-event.
Edit: Ah, you got it, the manual usually holds the answers as well.