When I use the 'move_and_slide ()' a warning comes up and says I don´t have a variable, but I do.

Martim NavarroMartim Navarro Posts: 1Member
edited February 23 in 2D

I alresdy restarted my computer but it didn't work. Plss help!!

Tags :


  • GlyphTheWolfGlyphTheWolf Posts: 103Member


    Move_and_slide function return updated velocity in case of collision. You should change code to:
    velocity = move_and_slide(velocity)

    That should remove warning message.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file