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...
imgur.com/OjaktF1
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).
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
Develop games in your browser. Powerful, performant & highly capable.
try Noob if Global variable=1 set gun to hero position Imagepoint.x(1,2 or 3)
Imagepoint.Y(1,2 or 3)