Odd climbing problem.

For questions about using Classic.

Post » Wed Aug 04, 2010 7:45 pm

Hello everyone.

I'm making a game where the player is able to climb up walls. Doing this is simple enough, I just adapted the "ladder" functions in Platform School (thanks Deadeye!) to climbing up walls instead. However, getting to the top of the wall brings about another problem.

My character has an animation that plays when they pull themselves up onto the surface. Of course, this animation ends with the character standing up on the surface. The question I have is how could I get this to work fluidly?

I thought of having the animation set up hotspots of the animation in such a way that, should the player be just looking at it, the character then appears to be pulling themselves up, the way they should. In reality, I'm removing the collision mask from where it is to where it would be after the animation was done, and using an offset to detect whether or not the player should continue climbing, or pull themselves up. If this hardly making any sense, I've attached a video of a similar game.

http://www.youtube.com/watch?v=7AQvgbdtIJk

In my game, you can climb up walls, so its not just an issue of what you can hang on to. But the animation of climbing up onto the surface is what I'm trying to get done. From a visual standpoint, its easy. But from a technical, behind the scenes standpoint? I've never figured this out. Help, anyone?
B
1
G
2
Posts: 3
Reputation: 631

Post » Wed Aug 04, 2010 10:52 pm

I approached this problem by having the character with a detector at its top to check when it's not overlapping a wall for when the character should start pulling themselves up. When they do that, then play an animation of them climbing. The animation hot spots must be aligned so that technically while the character is pulling themselves up, the sprite isn't moving. What I mean is, in the animation, the character will pull themselves up and away from the hot spot. Once the animation is done, set the position of the sprite to match up where the animation ended up after climbing.

Does that make sense?
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Wed Aug 04, 2010 11:03 pm

[quote:1m6914nq]I thought of having the animation set up hotspots of the animation in such a way that, should the player be just looking at it, the character then appears to be pulling themselves up, the way they should. In reality, I'm removing the collision mask from where it is to where it would be after the animation was done, and using an offset to detect whether or not the player should continue climbing, or pull themselves up. If this hardly making any sense, I've attached a video of a similar game.[/quote:1m6914nq]

That's what I said up here! It's a hard concept to describe, isn't it? Thank you very much for your reply!
B
1
G
2
Posts: 3
Reputation: 631


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests