How do I load a shot holding down a button

Get help using Construct 2

Post » Wed Jan 27, 2016 8:59 pm

One of the characters of my game got a gun , to shoot I need to load the shot and when I release the button it shoots .

ok, now my problem...
I am having trouble to doing this, so I hold down a button to load the shot, and shoot when I release

myb my problem can be just the logic

anyone have any ideas? tks
B
5
Posts: 34
Reputation: 322

Post » Wed Jan 27, 2016 9:57 pm

Should be as sinple as

on button pressed - load shot
on button released - shoot

maybe you'd like to add a wait action and set a boolean variable, then you could check for the boolean in the on released event..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: Nintend0Nerd, UlisesFreitas and 9 guests