At time index 4.38 you say that you have to pass along ‘motion’ to update_animation(). In fact, you don’t. You don’t even have to have that as paramater in the function since motion is global in the script and hence can be accessed from within any function.
2 Likes