Accurate ladder movement?

Get help using Construct 2

Post » Thu Apr 11, 2013 5:40 pm

Hello, I am looking for a way to make ladder movement more accurate. I have found out how to make my character climb the ladder, but I can't find out how to have the character grab each bar accurately. I've tried doing frame by frame pixel movement, but even then the character will be grabbing the air at times. Any tips on this would greatly be appreciated.
B
6
Posts: 5
Reputation: 1,075

Post » Sun Apr 14, 2013 2:33 am

Please let me know if this doesn't make sense..
B
6
Posts: 5
Reputation: 1,075

Post » Sun Apr 14, 2013 2:58 am

You may have to make a custom movement such as

-if player overlapping ladder + keyboard.UP is down
--set player.Y to player.Y -1
--set player animation frame to "player.animation.frame +1"

So that you accurately control the frame number of the animation.

Can we see your .capx?
B
19
S
7
G
2
Posts: 188
Reputation: 2,846

Post » Sun Apr 14, 2013 5:17 am

Getting an accurate animation is dependent on several factors, animation speed, animation frames, movement speed and the distance the animation has the character reach/climb per cycle.

You need to figure out how fast the character is moving based on the animation, for example, if the animation is 12 frames long, played at 12fps , whatever distance he moves per rung for the animation would be your speed.

An example of what you've got would make it easier to see why things aren't syncing.

Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Mon Apr 15, 2013 9:36 pm

Thanks for the feedback, I was actually able to solve my problem with your help. As it turns out, the main problem here was that it was repeating the set position command multiple times per frame, so I just had to set the event to repeat 1 time.
B
6
Posts: 5
Reputation: 1,075

Post » Mon Apr 15, 2013 9:44 pm

use "System -> Trigger once while true" on the conditional
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,212
Reputation: 18,482


Return to How do I....?

Who is online

Users browsing this forum: zenox98 and 25 guests