Sep-10-2021, 11:15 AM
The code shown doesn't give enough away to help solve the issue.
The thread title Dictionnary indexing error but I don't see any sign of a dictionary.
The function
In the class
The thread title Dictionnary indexing error but I don't see any sign of a dictionary.
The function
load_animation_images
return a list
of pygame images but is never shown as being called in the code.In the class
AnimateSprite
> __init__
images is assigned to animations.get(sprite_name)
which is not shown so its unknown what it returns