Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
hey guys does anyone of you here knows how to pickup and use guns?
the thing is that when i pickup guns and and fired it up it does fine but, the problem is even if i didn't pick up the gun and click fire button it still firing even without the picking up the gun another problem is when i click G button it drop the gun that it picked up recently and even i don't have the gun and click G it spawns/drop the gun....
can someone help me?
here's an screenshot from my event sheet...
Hey Edison, your screenshot isn't enough to help out unfortunately. Upload an example cap.x and it will be an easy correction.
From your screen shot every time you press G you will spawn the weapon because their is no other check in place (like checking if you even have a gun to drop).
Develop games in your browser. Powerful, performant & highly capable.
have you tried using a boolean variable true/false
If picked up gun - boolean set to true
If dropped gun - boolean false
If pressed fire
Boolean =true -fire
This should do it beacuse if it false it wont do anything
thanks guys...im just new in construct 2 and a bit noobish..i'll try your suggestions.thanks
try Noob if Global variable=1 set gun to hero position Imagepoint.x(1,2 or 3)
Imagepoint.Y(1,2 or 3)