Run animation wont stop while jumping!

Get help using Construct 2

Post » Thu Jan 05, 2012 11:37 pm

I have it set to When key is released > stop animation. Yet the character continues looping through it.

I set the run animation to loop so it would play as long as you are moving, but now I think that's what has this all messed up?

Here is my project file:https://dl-web.dropbox.com/get/index.html?w=9d8431c4 (I hope the link works, I'm new to all this.)

Could anyone help me?fwade872012-01-06 15:34:52
B
5
S
1
G
1
Posts: 13
Reputation: 809

Post » Thu Jan 05, 2012 11:44 pm

nope, you have to copy your capx in your dropbox/public/ folder
and then right click > dropbox > copy public link   
we need that one (:Yann2012-01-05 23:45:03
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Fri Jan 06, 2012 12:29 am

Ah, I see! Thank you!

Let's try that again, here is my project:

http://dl.dropbox.com/u/55889613/PROJECTOMEGA/index.htmlfwade872012-01-06 00:30:17
B
5
S
1
G
1
Posts: 13
Reputation: 809

Post » Fri Jan 06, 2012 1:41 am

need to see the .capx
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Fri Jan 06, 2012 2:54 pm

Right, that makes sense. I had to go back and save it all as on file, but let's try this one last cotton-pickin' time!

Here is my project .capx :



http://dl.dropbox.com/u/55889613/PROJECTOMEGA/omega.capxfwade872012-01-06 14:54:46
B
5
S
1
G
1
Posts: 13
Reputation: 809

Post » Fri Jan 06, 2012 3:04 pm

You have the 'key released' actions for left and right as a sub-events. Just drag it to the parent level and it will work.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,847
Reputation: 48,295

Post » Fri Jan 06, 2012 3:21 pm

TY, Zenox. Silly me! It works now!

http://dl.dropbox.com/u/55889613/PROJECTOMEGA/omega2.capx

Now, when you are jumping left or right, the run animation still plays rather than the jump animation taking priority.

That's because of the events I have the animation tied too I guess, but could anyone suggest a better way to do this?

I want the platforming to look and feel "right" before I really dig in and do some art assets. fwade872012-01-06 15:28:47
B
5
S
1
G
1
Posts: 13
Reputation: 809

Post » Fri Jan 06, 2012 3:45 pm

While you are still experimenting, it may be best to take note of THIS post from Ashley regarding Platformers. It may save you a few headaches later.

Also, it may be of use (or may not!) taking a look at THIS tutorial.zenox982012-01-06 15:48:20
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,847
Reputation: 48,295

Post » Fri Jan 06, 2012 3:52 pm

You know, I've looked through a lot of tutorials and searches and had not found that platformer tutorial. Thank you for that!!

[quote=Ashley]Just a quick tip: it's usually best to have an invisible square sprite with the platform movement, and position your animated player on top of that. The square sprite with the movement will ensure the movement is always smooth and never gets stuck.[/quote]

As for this, I see how it would make the movement consistently smooth, but what method can you use to position your animated player on top of the square sprite? Pin? Is that what that does?fwade872012-01-06 15:52:31
B
5
S
1
G
1
Posts: 13
Reputation: 809

Post » Fri Jan 06, 2012 4:35 pm

Nevermind! That tutorial was very well done and I learned some good stuff from it!

I think I will just have:

On Falling > Set animation > Jump

That was the run will go through only halfway into the jump. That should be fine!

Thanks for the help.
B
5
S
1
G
1
Posts: 13
Reputation: 809

Next

Return to How do I....?

Who is online

Users browsing this forum: h1k3, Unconnected and 0 guests