How to use "is_move_and_slide_on_wall()"?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By leiget
:warning: Old Version Published before Godot 3 was released.

Does anyone know how to use “is_move_and_slide_on_wall()”? I have a simple if statement that prints something if “is_move_and_slide_on_wall()” is true, but it isn’t working. Any requirements that I need to know about?

This function doesn’t exists in Godot, there is no way we can help. Or are you talking about an example code you found?

Zylann | 2016-09-27 17:01

I can’t tell you what it does, but there is a function called
is_move_and_slide_on_wall()
in KinematicBody2D according to the docs.
edit: I guess that is what lelget wrote, but the formating here makes it really hard to write underscores

sleepprogger | 2016-09-30 20:54

Oh, yeah… is_move_and_slide_on_wall was added recently in the master branch. I know about the underscores, the function is not present in the official build yet.

Reading to the source code, it looks like some additional results after calling move_and_slide.
It was added by reduz as part of this commit Several all around fixes to visual scripting (in the process of creat… · godotengine/godot@748836e · GitHub

Zylann | 2016-09-30 21:18