Hi, I’m a new learner on Godot and coding. I’m putting together a little jetpack game just as an exercise to learn all the basics in movements animation etc.
I have a working player script, everything does what it’s supposed to. I’m trying to add one more small detail when the player is free falling I want to play a different animation (in this case only one sprite) It’s commented out at the bottom before move and slide().
I’ve tried a number of ways to do it but it always cancels my death animation “explode”. The physics process function has an alive check at the start and I tested with print() and it all works but when I add the falling code the death animation only shows the first sprite and doesn’t complete it’s animation before the scene is reset. I’ve been a few days trying different things out but I don’t have the experience to figure out why its conflicting. Any help highly appreciated as always!
Thanks! The idea did cross my mind. Wasn’t sure if it was really good practice or not.
I’m (trying to)setting up a state machine see if I can learn the correct way to manage these movements.