Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hi, I want to be able to destroy a box then spawn one of 3 random objects, Ammo, HealthPack and a blank object which doesnt do anything.
I want the blank object to have a higher spawn rate if possible.
set a variable to choose(1,2,3,3,3)
then if variable is 1 spawn ammo
if variable is 2 spawn healthpack
if variable is 3 spawn blank
this way 3/5 of the time the blank is spawned.
Develop games in your browser. Powerful, performant & highly capable.
LittleStain would this be the same for 1 object? I just want when the enemy is killed to randomly spawn a med pack lets say 30% chance of getting one...
its the same yea as littlestain told you
enemie on destroyed
system set (name of your var) choose(1,1,2)
compare variable (name of your var)=1 enemy spawn another object : medikit
increase or decrease the number 1 for the %chance
Thanks I'll give that a try. I appreciate it.
Took A bit but I got it worked out... This worked perfectly.