pigdevstudio / platform_template

Template project for platform games in Godot Engine.
MIT License
72 stars 12 forks source link

Ladder: Character jerkily teleports towards the center of the ladder in Dev branch #42

Closed Zerokami closed 6 years ago

Zerokami commented 6 years ago

Teleport to ladder

I think there is no need to teleport the player to the center. We could instead allow the player to be in climb state as long as one is colliding. Daisy Dangerous allows the player to climb the ladder as long as one is colliding withe the ladder and the game doesn't need the player centered in the ladder.

Or if you do want to be at the center you could slowly move the player in that direction.

henriiquecampos commented 6 years ago

Ok, so for this one I think that a simple "snap" bool on the ladder will do the trick.

if snap is turned on, the character snaps to the ladder's center, otherwise it just starts climbing wherever it grabbed on the ladder, wachu think @Logmytech ?

Zerokami commented 6 years ago

In case you do snap wouldn't it be cool to move very fastly to the center.

That would remove the jerky teleport.

henriiquecampos commented 6 years ago

I think this is fixed on https://github.com/pigdevstudio/platform_template/commit/910b0e7e0fe818062f4b41c41bac8700498df87c I won't add a smoothing when the snap config is turned on...snapping teleports to the snapping point, so not smoothing when snap is on. :laughing: