yo, do u code in gdscript godot 4 ?
- User
yo, do u code in gdscript godot 4 ?
- Assistant
As an AI developed by OpenAI, I don't personally write code, but I can certainly help you with code-related questions, including those pertaining to GDScript in Godot 4. GDScript is the built-in scripting language used for the Godot engine, which is designed for creating 2D and 3D games. Godot 4.0 is an upcoming version that introduces many improvements and changes to the engine.
If you need assistance with writing GDScript code, understanding GDScript features, or migrating to Godot 4, feel free to ask, and I'll do my best to assist you! Remember to check the latest documentation or community resources, as Godot 4 is still under active development, and things might have changed since my last update.
- User
i want my fps character to slow down instead of suddenly stopping when i release a mouvement key like floaty smooth
- Assistant
To make your FPS character's movement smoother and have a deceleration "floaty" effect when you release a movement key, you can implement a form of momentum or damping to the movement system. Here's a basic example in GDScript for Godot 4.X, using linear interpolation (lerp) to smoothly transition the character's velocity vector: