need help with animation setup [FIXED]

Discussion and feedback on Construct 2

Post » Sat Aug 27, 2011 4:06 pm

in CC i have
[CODE]+ Player: Angle Equal to 0
   + MouseKeyboard: Key Right arrow is down
        -> Player: Set animation to "Walk"
   + MouseKeyboard: On key Left arrow pressed
        -> Player: Set animation to "Turn"
   + MouseKeyboard: On key Up arrow pressed
        -> Player: Set animation to "Up"

+ Player: Angle Equal to 180
   + MouseKeyboard: Key Left arrow is down
        -> Player: Set animation to "Walk"
   + MouseKeyboard: On key Right arrow pressed
        -> Player: Set animation to "Turn"
   + MouseKeyboard: On key Up arrow pressed
        -> Player: Set animation to "Up"[/CODE]
in C2 there's no animation by angle so i made it like this
[CODE]+ Player: Is animation "Stop_Right" playing
   + Keyboard: Key Right arrow is down
        -> Player: Set animation to "Walk_Right"
   + Keyboard: On key Left arrow pressed
        -> Player: Set animation to "Turn_Left"
   + Keyboard: On key Up arrow pressed
        -> Player: Set animation to "Up_Right"

+ Player: Is animation "Stop_Left" playing
   + Keyboard: Key Left arrow is down
        -> Player: Set animation to "Walk_Left"
   + Keyboard: On key Right arrow pressed
        -> Player: Set animation to "Turn_Right"
   + Keyboard: On key Up arrow pressed
        -> Player: Set animation to "Up_Left"[/CODE]
Everything in part 1 works fine - can move right, turn to left and up_right,
Part 2 is activated when sprite animation "Turn_Left" finish.
but when sprite turns left i can only play "Walk_Left" animation - turn to right and up_left not responding after pressing keys.

there's no debbuger so i made simple text object to show animation names, and all works fine except "Turn_Right" and "Up_Left" while sprite is faceing left direction.



Edit: All i have to do is to set everywhere
"Keyboard: Key "key name" is down" instead of
"Keyboard: On key "key name" pressed".

Works perfect now.shinkan2011-08-27 20:04:42
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Return to Construct 2 General

Who is online

Users browsing this forum: glerikud and 9 guests