Forgive me coders, for I have sinned. It's be over 25 years since I've coded last. I'm on macOS 12.3.1 and have a relatively simple question that I seem to be overlooking the answer to: sprite:update vs sprite.update
The docs say sprite:update allows for code to run on every update. The code I want is pretty simple - if on A button down, stop all animations (with a speed ramp down than I've yet to think about). On B down, resume all animations.
Q1: Does sprite:update get called by playdate.graphics.sprite.update? So all I have to do is declare a sprite.new and then a sprite:update function on the new sprite?
Q2: I'm going to use a global state variable "IsRunning" to determine whether to stop the animation on the playdate.update level but I think the best thing to do is simply not update specific sprites as opposed to stopping all sprite animations. (In the future, I might be selecting which sprites I want to stop their animations on.) Does this seem like the right approach?
Thanks for helping an older noob.