your first game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: 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
:bust_in_silhouette: Reply From: kidscancode

The most common cause of this is incorrect animation names. Look at your SpriteFrames again and make sure the animations are named “right” and “up” (capitalization counts).