Animation Not working

For questions about using Classic.

Post » Tue Dec 31, 2013 3:54 pm

@Jayjay
That works.but When I press the jump button while below the platform,the same problem happens.
I don't want the player to automatically crawl.He should keep the down arrow down and if the platform is above,he can't jump and stand,walk.He should only be able to crawl.
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Tue Dec 31, 2013 5:43 pm

I have solved the player standing below the platform problem.but a side effect has come.The player does not animate nicely while below the platform.But he still jumps below the platform leading to the unexpected.
Heres the .cap: http://www.2shared.com/file/DKBPvJL0/crawling_game.html
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Tue Dec 31, 2013 6:39 pm

Again,
Now the walk and stand events are only triggered when the player does not overlap the platform object at offset 0,-5 so that he don't stand when below the platform.And the animation problem while below the platform is solved.
Now the only problem is that he still jumps while below.
Here is the .cap file :((([http://www.2shared.com/file/KBYU_4gp/crawling_game.html}}
Is there anything I can do to make the events/actions shorter?Doc Ai2013-12-31 18:41:07
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Tue Dec 31, 2013 7:16 pm

Ah.Finally all the problems except a very little one is fixed.
Now the player won't jump,stand,walk while below.He will only crawl.
The little problem is that.He can still jump a little(probably because of the short collision mask.While jumping,the crawling animation plays.So If you press the up arrow key repeatedly while below the platform,it seems like he is crawling.
Help me fix this please.And is there any way to shorten my events?
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Tue Dec 31, 2013 7:17 pm


Here's the .cap file :[http://www.2shared.com/file/ReCZAd41/crawling_game.html]
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Tue Dec 31, 2013 7:29 pm

Anyway,That's fixed now.
Thank you
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Wed Jan 01, 2014 11:15 am

@Jayjay
Here's the final .cap.
I fixed the jumping animation problem by adding "Is jumping" condition to
Is on ground
-->Overlaps tiled background at offset.....
          -->Is not moving
               OR
          Is jumping

If you toggle this "is jumping condition",the player will jump a little while below and while jumping,he will animate(Crawling)

I don't know why this solved the issue.
What's the logic here?
How can the player be on the ground and jump at the same time?
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Wed Jan 01, 2014 11:16 am

.CAP link:
http://www.2shared.com/file/whlSSkwQ/crawling_game.html
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Thu Jan 02, 2014 3:09 am

@Doc Ai ah I see, and I imagine that what's happening is the jump key will trigger "is jumping" once, before it hits the ceiling, then "is falling" triggers, before registering that it is on the ground again, at least that's what I guess is happening
Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
127
S
43
G
18
Posts: 2,240
Reputation: 20,592

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest