[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
29
S
12
G
20
Posts: 759
Reputation: 13,861


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
29
S
12
G
20
Posts: 759
Reputation: 13,861

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
8
S
1
Posts: 9
Reputation: 627

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
6
G
8
Posts: 1,215
Reputation: 7,881

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
29
S
12
G
20
Posts: 759
Reputation: 13,861


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Casimir, Syazanie Amirin, tarek2 and 11 guests