[SOLVED] display full animation with just a keystroke

Get help using Construct 2

Post » Sat Nov 07, 2015 4:53 pm

Hello, please, how I can make an animation is displayed completely with just one keystroke ?.
That is, it would be like entering a loop and does not finish until the animation is not complete.
The animation must be completely uninterrupted.

I have this:

Keyboard -> Z is down -> set animation to "animation1" (play from beginning) -> ¿?¿?
Last edited by The Mnk on Mon Nov 09, 2015 6:57 pm, edited 2 times in total.
B
31
S
13
G
21
Posts: 844
Reputation: 14,693

Post » Sat Nov 07, 2015 4:54 pm

Just set the animation to not loop in the properties tab when you go to edit your sprites image.
B
12
S
3
Posts: 68
Reputation: 906

Post » Sat Nov 07, 2015 5:09 pm

You mean this:

Image

But animation does not play completely, only the first frame is displayed.

This is the configuration that I have:

Image

Pressing the Z key I need animation is displayed completely, without possibility of further actions by the player until the animation does not end.
B
31
S
13
G
21
Posts: 844
Reputation: 14,693

Post » Sat Nov 07, 2015 6:09 pm

How does your coger animation look like?

Can you make a screenshot of the animation frames?
B
11
S
2
Posts: 9
Reputation: 812

Post » Sat Nov 07, 2015 6:10 pm

Sounds like you have conflicting events setting the animation to something else..

If the conditions of another event setting animation are also true the action of both events will be executed..
If both events set animation from beginning, the animation will start from frame 1 every tick..
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

Post » Sat Nov 07, 2015 6:51 pm

Try changing 'keyboard z is down' to 'on keyboard z pressed' (triggering the event just once)
B
21
S
5
G
8
Posts: 1,215
Reputation: 7,834

Post » Mon Nov 09, 2015 6:57 pm

Thanks guys, solved, actually had a conflict with the events but also some variables are required to perform the task.
B
31
S
13
G
21
Posts: 844
Reputation: 14,693


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 2 guests