How do I animate a character climbing left or right?

Get help using Construct 2

Post » Sat Mar 18, 2017 9:48 am

Hi there, can not believe how much I have learnt on this forum already ... thank you all so much ... however I can not seem to solve this doozy!

I am using this tutorial for ladding climbing ...

https://www.scirra.com/tutorials/591/a- ... latformers

And the up and down are working without any problems at all. However, for larger ladders or cargo nets I would like the player to run through the climbing animation even if they are moving left or right. At the moment, the animation stops completely when I move left or right whilst on a 'ladder'

Here is my movement setup ...

Image

And here is the events pertaining to the ladder

Image

Up and down are working without any problems, and the movement left and right is fine too. It's just the "climb" animation won't play when I move left or right when overlapping a 'ladder'

Many thanks!
B
12
S
3
Posts: 59
Reputation: 870

Post » Sat Mar 18, 2017 2:05 pm

Exchange all "play from current frame" actions to 'play from beginning' and set to looping.
Image Image Image
B
32
S
12
G
27
Posts: 761
Reputation: 17,246

Post » Sat Mar 18, 2017 2:18 pm

@MPPlanetOfficial, thank you! That solves that issue slightly ... unfortunately now when the player reaches the bottom of the ladder (when they are on the floor) they are still overlapping it and as such it doesn't animate the run. Could I PM you?
B
12
S
3
Posts: 59
Reputation: 870

Post » Sat Mar 18, 2017 4:02 pm

keeno79 wrote:@MPPlanetOfficial, thank you! That solves that issue slightly ... unfortunately now when the player reaches the bottom of the ladder (when they are on the floor) they are still overlapping it and as such it doesn't animate the run. Could I PM you?


You probably forgot to enable platformer behavior.
Simply put a censor sprite at the end of the ladder that enables it.
Image Image Image
B
32
S
12
G
27
Posts: 761
Reputation: 17,246

Post » Sat Mar 18, 2017 4:49 pm

The way I solve it is to use a blank collision sprite over the ladder instead of the ladder itself.

Put your collison sprite just over the players head so when they reach a ladder they can choose to ignore it and keep running or jump and collide with the ladder to start climbing.

That is also useful if you want the player to be able to jump or mover from the laddder before reaching the top as you can check to see if they are overlapping that blank sprite and if not they can be released to do some other movement.
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,830

Post » Sat Mar 18, 2017 4:55 pm

@lamar ... genius! This solved it perfectly!

Thank you to both @lamar and @mpplanetofficial
B
12
S
3
Posts: 59
Reputation: 870


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests