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
44
S
13
G
8
Posts: 622
Reputation: 7,417

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
69
S
20
G
6
Posts: 379
Reputation: 9,699

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
44
S
13
G
8
Posts: 622
Reputation: 7,417


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 56 guests