How do I position a ledge climb animation?

Get help using Construct 2

Post » Wed Feb 03, 2016 9:56 am

I want my character to climb up a ledge when attached to it. I'm already having trouble properly positioning the character when the marker overlaps with the ledge, but what I want to happen is the character to automatically climb the ledge when grabbing it. The problem is I don't know how I could get the character himself to move onto the the top of the ledge. At the moment, the animation plays with the character climbing but not physically moving. Would I need to actually change his x/y values every frame of the animation? Or is there a more convenient way of doing this?

Thanks!
B
5
Posts: 26
Reputation: 285

Post » Wed Feb 03, 2016 1:20 pm

Once I get back home I can send you some info on how I did it for my project if no one else does it before me.
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Wed Feb 03, 2016 2:16 pm

One thing you could try is to place a very small invisible object on the border of the ledge, then place precisely the origin of your character object so that it is correctly placed next to the ledge during the climb animation. For example, if your character is hanging to the ledge by his hands, place the origin on the characters' hands for this frame. Then just set the character's position to the invisible object's position as soon as he is attached to the ledge.

I wouldn't bother to move the character's Y position while he is climbing if you have a climb animation. Adjusting the origin for each frame seems more consistent.

Good luck!
B
22
S
5
G
1
Posts: 325
Reputation: 2,347

Post » Thu Feb 04, 2016 1:18 am

@Forumpy,
I sent you a small capx file with an old version of my prototype. I sent you some info about it as well. Let me know if you cant completely figure it out.
Cheers
B
43
S
12
G
14
Posts: 488
Reputation: 10,570


Return to How do I....?

Who is online

Users browsing this forum: SebastianOs, stevecameron and 8 guests