pigdevstudio / platform_template

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

Player stuck in wall after dashing to it #35

Closed Zerokami closed 6 years ago

Zerokami commented 6 years ago

Once I dash into the wall in the template, the character is stuck in wall state

Player stuck in wall

https://imgur.com/a/W5beuJ2

IMHO this is a major bug and should be given priority.

It seems this happens when the character is touching both bottom and side walls

You should also perform a check if the actor is_standing_on_wall and if true exit wall

Zerokami commented 6 years ago

Now in developement branch, the character does wierd transistions and can't move to walk state or jump once touching wall in the direction the input is pressed.

New Wall State bug

henriiquecampos commented 6 years ago

This is not happening due to the transitions, is due to the slope I guess, you can test it on the left corner.

Anyway this is a topic for another issue, the current issue is fixed with a better approach now at https://github.com/pigdevstudio/platform_template/commit/72a4217c1b9fc7c705b879960755436012a252bf

Let's move the second part to a new issue, shall we? :smile:

henriiquecampos commented 6 years ago

Hey, just passing by to say that yeah, there was something strange with the transitions, sorry. But I think it is fixed at 83f8c18 so I think it is good already :wink: