How do I switch animations when a character is walking..

Get help using Construct 2

Post » Thu Aug 10, 2017 1:29 am

How do I switch animations when a character is walking and switch back when it stopped? and how to repeat them?
B
1
Posts: 2
Reputation: 129

Post » Thu Aug 10, 2017 6:58 am

What have you used to move the character? Platform behaviour?
Image



Coming soon on Steam!
B
16
S
9
G
3
Posts: 209
Reputation: 3,476

Post » Thu Aug 10, 2017 5:55 pm

i used a template that construct had.
B
1
Posts: 2
Reputation: 129

Post » Thu Aug 10, 2017 8:31 pm

Hi LuckFoxReborn,

my english is not the best, i hope you will understand :)

First setup an idle and walk/run animation. you can do this when you double click on your player and you will see a screen with default, here you can add the animations.

add the platform behavior to your player or - playerbox (not necessary)

Go to your event sheet and setup your movement, like key 'd' is down simulate control to the left, and add action not mirrored, for the left you do the same but than set not mirrored to mirrored.

ok, now thats done setup a trigger in your eventsheet

'player - on moved'

ok next you do is

right click on it and add a sub event

player - is on floor, right you see ''add action'' now add your player and ''set animation'' - you can do this - " - and you will see the animations that you setup, like idle and walk, choose walk.

ok next,

your guy need to rest, when he's not moving,

go to the event sheet and select your player, add '' on stopped'' trigger

right click on it and add an sub event, player is on floor, add action on the right and do this again " select idle.
B
7
S
1
Posts: 73
Reputation: 612


Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948 and 7 guests