Player character isn't facing the right direction

Godot Version

v4.6.2.stable.arch_linux

Question

I’m new to Godot and I’ve been following along with this tutorial to implement Pokemon-style grid-based movement in a generic 2D top down RPG.

I’m having a problem where the player’s sprite isn’t visibly facing the right direction (down) at the start of the game, even though the movement script functions as if it was. I’ve tried a bunch of stuff, but none of it fixed the issue, so the player remains facing left when the game starts.

Here’s my project so far.

You have just asked us to watch a 10-minute video, and then dumped your entire project on us. If someone were to do that to you, how inclined would you be to wade through to find the problem for someone?

I did look at your code, and my guess is the problem you are having is that you don’t have anything in _ready() to change the facing. Alternately, you need to change the default starting animation in your AnimationTree. Try one of those.

You get what you put into things, and while it’s helpful to see all your code (good job there), keep in mind we are all volunteers. In the future, take the time to paste the code in to your post and format it correctly. Some people will not click on links from new people because they seem suspicious.

The more effort you put into making your question easy to answer, the easier you’ll get an answer.

It wasn’t my intention to dump a mess on anyone. I was just trying to provide enough information to show where I was coming from and what I’d managed to do so far. Sorry if it came across differently. I do get the suspicion with untrusted links. I’ll paste my code directly next time.

I tried your suggestions for changing the facing and the default starting animation and after some experimentation, found a solution. I appreciate you taking the time to help me with this, despite my admittedly poor communication. Thank you.

2 Likes

No worries. I wasn’t upset, just trying to help you for the future. Glad you got it working. If my solution worked for you, mark it as the solution for people coming after. f it was something else, a description of your fix as a reply and then marking that as the solution is the appropriate way to close a ticket out.

1 Like