**
**
not sure what I’m doing wrong plz help
You have to flip the sprite.
Something like:
if direction > 0:
$Sprite2D.flip_h = false
if direction < 0:
$Sprite2D.flip_h = true
Just put it somewhere in the process function under var direction
Thank you so much, now my character isn’t moonwalking anymore!
No problem! Glad it worked!
A useful thing to remember as a beginner is that the code will only do exactly what you tell it to do.
If you tell the code “buy some apples” anything could happen. Just as an example! As a human, we understand it probably means like 3-6 apples but logically for the computer it could just as well be all apples in the world or -300 of them.
It’s just a good thing to keep in mind, i found it helpful to make it easier to understand how to instruct the computer. It tries to do exactly what you tell it to do, without adding anything else added
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.