mcrfpy.Color and mcrfpy.Vector animation targets #218

Open
opened 2026-01-15 04:19:36 +00:00 by john · 0 comments
Owner

We can animate an object's x and y positions separately, but this feels hacky. We could animate a pos to a new value. It would even be OK for the animation system to break this down into an x and y animation internally, as long as we handle the callback correctly (we wouldn't want to callback after one property finishes but the other still has a frame to go, for instance).

The same applies to r, g, b, and a properties on a color.

This ties into the concept of "animation groups", which would only trigger their callback when all animations were completed; but it's somewhat simpler because it doesn't have to support multiple duration values within the group.

We can animate an object's `x` and `y` positions separately, but this feels hacky. We could animate a `pos` to a new value. It would even be OK for the animation system to break this down into an `x` and `y` animation internally, as long as we handle the callback correctly (we wouldn't want to callback after one property finishes but the other still has a frame to go, for instance). The same applies to `r`, `g`, `b`, and `a` properties on a color. This ties into the concept of "animation groups", which would only trigger their callback when all animations were completed; but it's somewhat simpler because it doesn't have to support multiple duration values within the group.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
john/McRogueFace#218
No description provided.