Ignore Input

Get help using Construct 2

Post » Sun Nov 11, 2012 9:33 am

How would I set the game to ingore gamepad input?

I have an action where I press a button which triggers an animation. I want to ignore input while the animation plays and then re-enable input when the animation has finished.

Best,
Mik
B
43
S
13
G
8
Posts: 612
Reputation: 7,372

Post » Sun Nov 11, 2012 11:11 am

You would have to set a variable (AllowedToMove) and state that when AllowedToMove = true
   Left Button is down >> Simulate Left
   Right Button is down >> Simulate Right

and so on. And then tell that variable to be false when the movie is playing and true at the end of it.

If Movie is playing >> AllowedToMove = false
If Movie has stopped >> AllowedToMove = true
Using R243 for all examples
B
68
S
20
G
6
Posts: 378
Reputation: 9,672

Post » Sun Nov 11, 2012 11:12 am

[QUOTE=emoaeden] You would have to set a variable (AllowedToMove) and state that when AllowedToMove = true
   Left Button is down >> Simulate Left
   Right Button is down >> Simulate Right

and so on. And then tell that variable to be false when the movie is playing and true at the end of it.

If Movie is playing >> AllowedToMove = false
If Movie has stopped >> AllowedToMove = true[/QUOTE]

Thanks, I actually already solved it using a similar method. I just had a brain freeze :)
B
43
S
13
G
8
Posts: 612
Reputation: 7,372


Return to How do I....?

Who is online

Users browsing this forum: ColombageEnPLS and 2 guests