please help!!!!

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jk

I keep getting this error every time I playtest my game,
invalid set index frame, and I’m using this code,

if facing == "down":  
	sprite.frame = 0
elif facing == "up":
	sprite.frame = 9
elif facing == "left":
	sprite.frame = 8
elif facing == "right":
	sprite.frame = 5  

Is sprite an AnimatedSprite? “Invalid set index frame” means that it can’t find the property called “index” to set to the given number.

exuin | 2020-09-20 18:34

Also, please include the full text of the error message. I suspect there’s additional information there that would help identify the problem.

kidscancode | 2020-09-20 18:59

PS: When asking questions, give them a meaningful title to make them easier to search for. Titling a question “please help” makes it very difficult to search :slight_smile:

Calinou | 2020-09-20 23:04