Let a character NOT move

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Schweini

I would like that my character can not move when I would like it. It is a KinematicBody2D

Did you try to disable it?

maer | 2019-02-18 14:52

:bust_in_silhouette: Reply From: LordViperion

Make a boolean variable which is represent your character can be move or not.
And If this variable is setted to true then set the speed or movedir or velocity to zero.