|Attention||Topic was automatically imported from the old Question2Answer platform.|
Watching some YT videos, watched to avoid the “Animator Hell”: https://www.youtube.com/watch?v=nBkiSJ5z-hE
Then the Finite State Machine videos start to appear. So I tried to copy this: https://www.youtube.com/watch?v=Ty4wZL7pDME
but I do not understand quite well.
This is my project: GitHub - chriztheanvill/Godot_CS_State_Machine: Testing_CS_State_Machine
Its on Godot, with C#
Does not have the Assets folder:
The thing is:
In the Implementation I repeat the code many times, like:
First get the parent object (Player) in to “pl” where there are the Methods:
Gravity, Movement, Jump, Attack, etc…
Walk, has the “pl.Gravity, pl.Movement, pl.Jump, pl.Attack” Methods.
Jump has the “pl.Gravity, pl.Movement, pl.Jump” Methods.
It is normal to repeat the methods in each state?
Can you show us the part in your code? Maybe I can tell you how to improve things.
juppi | 2021-12-28 14:17