Controls Vs animations.

Get help using Construct 2

Post » Tue Nov 08, 2011 8:32 pm

Ive this Player with some animations, while moving, and I cant make them all work.

When he jumps right and press down he makes an animation.

I want to do same when hes jumping left, but when I press down he turns automatically to the right.

I tried inverting conditions, applying sub-conditions, etc and zero. None worked.

How can I do this?

Heres the capx.
http://dl.dropbox.com/u/1056957/controls%20vs%20animation.capx

Thanks a million.
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Tue Nov 08, 2011 10:42 pm

Simple:

Instead of creating a mirrored animation like "movingright" and "mirrorleft", you only create a "moving" animation.

Than you set the key to adjust the angle:
if left key is pressed, set angle to 180, if right key is pressed, set angle to 0
make sure to check "Auto Mirror" in the player's properties


Here ya go:
http://dl.dropbox.com/u/23138239/auto_mirror.capx

:)
B
19
S
3
G
3
Posts: 56
Reputation: 2,496

Post » Tue Nov 08, 2011 11:13 pm

Frak me LOLOL

Thanks a lot.

I was melting my head around this simple task, but I really couldn't get done.

hugz :)
B
18
S
4
G
5
Posts: 149
Reputation: 4,498


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests