All Questions


posted to: Your feedback

Character does not handle slopes

The current code has no slope detection or is there a way to add this in the controller? On all sloped terrain the character slides, it would be nice to set a max angle but I can't find a proper way of doing this. Could you please add this or an explanation of how to go about this because currently I can only use this code for a plat former. Also there are some steps with a few issues I will create a separate feedback for those.
  • Nathan Lovato replied

    Slopes are part of the bonus topics I'd like to touch on. It's similar to 2D, it's mainly a matter of using move_and_slide_with_snap instead of move_and_slide. It takes some extra changes, as you have to turn snapping to the floor off when you want the character to jump.

    I'm looking forward to more feedback!

    Note that this may take me time to add more content to this course. Due to our budget and limited revenue, I have to find ways to get some money in at the moment - and Godot courses don't sell that many copies.

    Kind regards,