sprite:get_num_frames() direction isn't optional as stated
For the method sprite:get_num_frames(animation, direction)
, the docs say that direction is optional, however it is not optional if an animation is specified, and will result in an error.
For the method sprite:get_num_frames(animation, direction)
, the docs say that direction is optional, however it is not optional if an animation is specified, and will result in an error.