Godot Version
4.4
Question
Hi, I’m a beginner in programming in Godot, but is there a way to make the player, when inactive for a while, perform a random idle animation in no particular order, like games such as Earthworm Jim?
4.4
Hi, I’m a beginner in programming in Godot, but is there a way to make the player, when inactive for a while, perform a random idle animation in no particular order, like games such as Earthworm Jim?
Of course it’s possible. You can store all idle animation names in an Array[StringName] and the use Array::pick_random() when trying to play a new idle animation.
You can also use a Timer to track how long the player has been idle, or track the time by adding delta from the process function to a variable.