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
39
S
12
G
8
Posts: 580
Reputation: 7,108

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 R238 for all examples
B
60
S
17
G
6
Posts: 363
Reputation: 9,125

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
39
S
12
G
8
Posts: 580
Reputation: 7,108


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests