I have a question, not necessarily specific to any platform or API, but more specific to code interaction between animations.
The game is a good example. Let them say that the player is dying, and there is an animation of death, which must end before the object is deleted. This is typical of many cases where some animation must end before continuing with what usually happens. How would you do that?
My question is about control and animation logic. How would you create a system that can control the animation, but at the same time implement custom behavior?
The problem that usually arises is that game logic and animation data become dependent. That is, the animation should pay attention to the code or somehow contain metadata for the duration of the animation sequences. Which is typical, especially since the problem is that the animation, which should run some other code, says that after 1.13s generate a special sprite, this usually leads to a deep embedding of the code and animation. A timer bomb would be an example of both logic and animation, where both things interact, but I want to keep them as separate as possible.
But what would you do to save the animation and encode two separate things?
mgrammar, , DSL . , ...