Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Noah |
I was trying to make the example of the first game and I am faced with the problem that the Splite disappears after this code. I’m with version 3.0.6
if velocity.x != 0:
$AnimatedSprite.animation = "right"
$AnimatedSprite.flip_v = false
$AnimatedSprite.flip_h = velocity.x < 0
elif velocity.y != 0:
$AnimatedSprite.animation = "up"
$AnimatedSprite.flip_v = velocity.y > 0