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
im trying to make a command that will say if a shotgun is already spawned, dont spawn another one.
i guess i would do that with compare variable? shotgun.count = 1, but after that im not sure how to do it :(
Create a boolean instancevariable in the object Shotgun with the defaul state of false - maybe you want to call it "spawned". Then after the "first" spawn set it to TRUE. Befor you spawn another one, check the variable and only spawn again if false....
Develop games in your browser. Powerful, performant & highly capable.
ok i will try that ty
I answered here.