Wait for animation end?

Get help using Construct 2

Post » Fri Jun 07, 2013 3:09 pm

Let's say I have some pipe objects connected to one another. The first pipe starts an animation of water flowing through it and when the animation finishes, it freezes at the last frame and sends a "message" to the next pipe to start playing the same animation, so that I get a nice effect of water flowing through all the pipes. The standard time-dependent 'wait' event isn't the answer here, obviously. So my question is: How to set 'a wait' for an animation to finish playing? I tried several ways, but none of them worked.Kurajber2013-06-07 15:11:44
B
10
S
2
G
2
Posts: 29
Reputation: 1,710

Post » Fri Jun 07, 2013 3:40 pm

kind of image point that they all have. in the beginning and the end of the animation. The start point is at the top of the object and on the last frame you move it to the bottom. If that frame intersects then start the animation of the pipe where it intersects.
B
9
S
3
G
3
Posts: 70
Reputation: 1,990

Post » Fri Jun 07, 2013 6:54 pm

Have you tried using 'on animation finished' condition?
B
8
S
2
Posts: 48
Reputation: 1,098

Post » Sat Jun 08, 2013 1:15 am

With the 'on animation finished' condition you can do that. I use 'on animation finished' and 'on animation frame' for logic to have animations transition and to spawn damage boxes.
B
21
S
8
G
6
Posts: 346
Reputation: 4,891

Post » Sat Jun 08, 2013 2:50 am

[QUOTE=Kurajber]... I tried several ways, but none of them worked.[/QUOTE]
Could you specify what ways have you tried? It shouldn't be hard using 'on animation finished'.
B
12
S
3
G
3
Posts: 36
Reputation: 3,048


Return to How do I....?

Who is online

Users browsing this forum: Darknessed, shubhamrathi9, surendhra, tetuan and 12 guests