07-03-2015, 11:55 AM
Oh sorry! Let me break it down then.
When Valo is standing near the right side ladder and you press up, he turns off ALL of his normal movement and physics code and enters a ladder-code state. This makes him change his sprite to the climbing animation, and makes him unaffected by gravity. It also causes his object to snap into position.
When you try to do the same on the left, it causes valo to raise up before changing his sprite. You can notice this as the little hop. This is bad because the ladder code is set up to turn itself off and return you to normal-code state if your sprite ever stops being the ladder animation. So on the left valo is entering ladder state without becoming the proper image, and is thus booted out of ladder state immediately. However, valo is entering a slightly more correct version of ladder state when he starts climbing in middair from the hop, and thus his sprite changes. BUT this is not giving him the proper physics. If you look on the left, when i stop climbing(when his animation freezes) he falls back down.
This is very confusing because left ladders use the very same code as the right, with the only difference is that it is set to check for touching a left ladder instead of a right.
Also, you can keep climbing without being on a ladder at the moment simply because i havent set up any checks or events on what to do when you reach the top. It's not really a bug, it's just something that hasnt been done yet.
Can you offer any insight?
When Valo is standing near the right side ladder and you press up, he turns off ALL of his normal movement and physics code and enters a ladder-code state. This makes him change his sprite to the climbing animation, and makes him unaffected by gravity. It also causes his object to snap into position.
When you try to do the same on the left, it causes valo to raise up before changing his sprite. You can notice this as the little hop. This is bad because the ladder code is set up to turn itself off and return you to normal-code state if your sprite ever stops being the ladder animation. So on the left valo is entering ladder state without becoming the proper image, and is thus booted out of ladder state immediately. However, valo is entering a slightly more correct version of ladder state when he starts climbing in middair from the hop, and thus his sprite changes. BUT this is not giving him the proper physics. If you look on the left, when i stop climbing(when his animation freezes) he falls back down.
This is very confusing because left ladders use the very same code as the right, with the only difference is that it is set to check for touching a left ladder instead of a right.
Also, you can keep climbing without being on a ladder at the moment simply because i havent set up any checks or events on what to do when you reach the top. It's not really a bug, it's just something that hasnt been done yet.
Can you offer any insight?