Total noob here! I've just completed the Ghost Shooter tutorial and decided to make it a bit more interesting - I've added a secondary rocket launcher with limited ammo and higher, splash damage; shootable monster spawn boxes; a frag counter; and rocket ammo + health powerups.
I'm trying to get the monsters to randomly drop rocket ammo (25%); health (25%) or nothing (50%), but my attempts at random drops are not going well and although I did find a topic on the subject, I couldn't understand how to apply it.
My latest attempt was to assign a private 'Drop' variable of random(4) to the monster sprite, then check it's value against 1 and 2 on death, but construct doesn't seem to like the random private variable, and keeps replacing it with 0. Ideally I would generate a random number and check against a single 'drop table' which would make the system much more scalable. Any suggestions please?