complex button commands

Get help using Construct 2

Post » Wed Oct 02, 2013 4:47 am

@plinkie
I already have the "Start/Stop ignoring user input" in the combos.

Those doesn't solve the "need to lock out the pressing of arrow keys when Luffy is doing combo animations." ???

What is another way of disabling the pressing of any or certain buttons during an animation?

can you use @sgn15 in your reply as well. I want to have notifications as wellsgn152013-10-02 07:59:47
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Wed Oct 02, 2013 4:25 pm

On the movement events, add a condition 'if not in animation Combo' etc
I don't add @sgn15 because OP is meant to receive notifications regardless.plinkie2013-10-02 16:26:23
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398

Post » Wed Oct 02, 2013 4:49 pm

@plinkie
http://www.sendspace.com/file/4tmuua
ok. check the movements group.

I added 2 new attacks (Basic2 and Basic3) under Attacks group, but these 2 attacks have the same problem as the combos before (getting stuck). Did I do something wrong again?

B
16
S
7
Posts: 301
Reputation: 2,726

Post » Wed Oct 02, 2013 6:13 pm

@sgn15
Basic 3 gets stuck because you have On animation "Basic 2" finished instead of Basic 3
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398

Post » Wed Oct 02, 2013 6:16 pm

If you need any more minor edits help I would take this to PM with me, thanks.
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398

Post » Thu Oct 03, 2013 10:45 am

@plinkie

ok. But that's not the problem I was asking.

I have tried PM-ing you, but it says "Access Denied". need more reps

How do you use the "Set ignoring input"?

I have tried using:

1.
(Player) Is animation "Basic2" playing --> (PlayerBox) Start ignoring input
(Player) on animation "Basic2" finished --> (PlayerBox) Stop ignoring input

and also

2.
(Player) Is animation "Basic2" playing --> (PlayerBox) Start ignoring input
(Player)Is animation "Basic2" playing (INVERTED) --> (PlayerBox) Stop ignoring input


number 1 results:
If I press any arrow keys while animation of Basic2 is playing, I will be stuck in my position forever.

If I let the animation Basic2 finish before pressing any arrow key, it will be normally working (I can move afterwards like normal).

number 2 results:
If I press any arrow keys while animation of Basic2 is playing, my player will directly play WALK animation.

Both are not how I wanted it to work.

I wanted the arrow key inputs to be turned off when animation of Basic2 is playing. and the arrow keys will be turned on again when the animation Basic2 is finished animating.
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Thu Oct 03, 2013 7:11 pm

@sgn15 You could use a boolean variable "ready" that you check whenever there is input. If it is true then you proceed with the input.

Then you could set it to false when the character is performing a complex action that should not be interrupted.
B
26
S
8
G
2
Posts: 33
Reputation: 3,645

Previous

Return to How do I....?

Who is online

Users browsing this forum: georeb, part12studios and 10 guests