[HELP]RPG animations

Get help using Construct 2

Post » Mon Nov 07, 2011 11:39 pm

I want my RPG character to move freely in the field map
but i want him to change animations according to the side he's facing
like,if he's facing right,set "right" animation.
but i don't exactly know how to do this so help me plz guys.
Thanks
B
16
S
5
G
1
Posts: 43
Reputation: 1,787

Post » Tue Nov 08, 2011 9:37 am

B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Wed Nov 09, 2011 9:28 pm

Thanks,but,what should i do to change the direction of the idle animation ?(example:when the last movement made is UP,the Idle animation becomes UP)
fmaf2011-11-09 21:45:26
B
16
S
5
G
1
Posts: 43
Reputation: 1,787

Post » Wed Nov 09, 2011 9:44 pm

Create a variable which you can change depending on what key you press, this isn't actual code but you get the idea:

if Up is pressed then DIR = "up"
if Left is pressed then DIR = "Left"
...
...

Then, when idle check the DIR variable

if DIR = "up" then idle anim = upidleanim
if DIR = "left" then idle anim = leftidleanim
...
...
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Wed Nov 09, 2011 9:46 pm

(just fixed the diagonal thing)
oh,got it!
that's great thanks
B
16
S
5
G
1
Posts: 43
Reputation: 1,787


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests