• General Chat
  • Help make character slip when not receiving input

how to make a character that slips when you stop pressing a directional arrow

Welcome to the forums @FlyPhoenix!

What node is your character using? Is it in 3D or 2D?

In general, what you want to do is have a velocity variable that slows over time, instead of coming to a complete stop. The [platformer demo on the Godot Demo repository[(https://github.com/godotengine/godot-demo-projects/blob/master/2d/physics_platformer/player/player.gd) has code for a player that uses this type of movement. Then you can adjust the de-acelleration to get more or less slipping. It uses a RigidBody2D, but you can use a similar system for adding drag/de-acelleration for KinematicBody2D nodes as well.

Also, I changed your topic name, but in the future please give your topics a more descriptive name. Not only will this help make it easier to tell what exactly is being asked at a glance, but it also makes the topic easier to find for others who have the same problem in the future :smile: