How to loop a series of animation?

Get help using Construct 2

Post » Thu Dec 12, 2013 3:33 pm

Hi, I want an enemy to play a series of animation like this:

condition:
enemy damage is more then 100
enemy damage is less then 200
enemy is not moving along path

action
set enemy animation to "animation idle"
wait random (1.0,3.0)
set enemy animation to "animation look left"
wait random (1.0,3.0)
set enemy animation to "animation look right"
wait random (1.0,3.0)

now I'd like to loop this action while the above condition is true...


thenerd122013-12-12 15:34:42
B
5
Posts: 40
Reputation: 307

Post » Thu Dec 12, 2013 4:19 pm

condition:
enemy damage is more then 100
enemy damage is less then 200
enemy is not moving along path


Sub condition: If not in any animation

action:
set enemy animation to "animation idle"

Add a sub condition: On animation "animation idle" finished.

Action : wait random
Set animation to "animation look left"

Then add another sub condition for on "animation look left" finishes. Repeat and point back to "animation idle".KiratTheKop2013-12-12 16:32:12
B
11
S
2
Posts: 68
Reputation: 982

Post » Thu Dec 12, 2013 4:31 pm

actually, you might have to move around things a bit to make it work properly.
B
11
S
2
Posts: 68
Reputation: 982

Post » Sun Jan 12, 2014 9:47 pm

Hi Kirat, (I know am a bit late) thx for you reply.
B
5
Posts: 40
Reputation: 307


Return to How do I....?

Who is online

Users browsing this forum: michaelverdi and 26 guests