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
I'm trying to make a rigged lootbox as a joke for a game and i have the feeling i can do this by having a function that calls a random number and what ever number is called a certain number is spawned but i don't know how to make it happen.
On interact with box : call function "Loot" with parameter "choose(1,2,3,4)"
On function "Loot"
sub event > if param 0 = 1 : spawn object A
sub event > if param 0 = 2 : spawn object B
Develop games in your browser. Powerful, performant & highly capable.