How make animation for Jump left and right - capx

Get help using Construct 2

Post » Mon Nov 28, 2011 9:02 pm

Hi again ;-)

I have problem with animation.
I would like to set animation: "jumpleft" when player jump when walk left.
please check:



Here is download:
download rar
thanks
B
4
G
2
Posts: 48
Reputation: 1,328

Post » Mon Nov 28, 2011 11:24 pm

You need to separate the left and right actions into their own events. I then added an inverted condition into the previous event stating that the character will only play the walk animation if the character is not jumping.

Massive file size too! 10mb? That's a big'un :)
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 930
Reputation: 9,358

Post » Mon Nov 28, 2011 11:29 pm

Have a looksie!

http://dl.dropbox.com/u/50465867/SonnyOK2.capx

That working alright? Seems to be taking its time uploading. In any case, try doing the same for the falling event, and you'll have a smooth animation.Tom2012-01-16 00:26:14
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 930
Reputation: 9,358

Post » Tue Nov 29, 2011 12:16 am

thanks a lot !
B
4
G
2
Posts: 48
Reputation: 1,328

Post » Tue Nov 29, 2011 12:20 am

I saw yuo made global variable
Is there any tutorial for this ?
B
4
G
2
Posts: 48
Reputation: 1,328

Post » Tue Nov 29, 2011 12:40 am

Ah yes, sorry... I should have removed that. That was another direction I was going to go in, to have the variable change if the player was touching the ground. If you want to add a global variable, just right click above event 1. You can call the variable from the system settings.

You can delete it, it's not being used.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 930
Reputation: 9,358

Post » Tue Nov 29, 2011 12:37 pm

You have the "Animations" section of the How do I FAQ containing help and examples.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Tue Nov 29, 2011 2:30 pm

@marcinkowski, for a platformer you don't need separate animations for facing right and left - you should be able to use the 'set mirrored' action to automatically flip the images!
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests