PuzzleScriptPlus icon indicating copy to clipboard operation
PuzzleScriptPlus copied to clipboard

Do tweens without doing movement (for replacement matching & animation in late turns)

Open Auroriax opened this issue 2 years ago • 1 comments

The main issues with tweening is that it's limitations prevent it from being used in more complex games. Should look into a way to do visual movement that is not directly tied to the movement keywords (e.g. when moving objects without using directions). A hotfix might be some way to trigger animation on late turns.

Auroriax avatar May 16 '22 21:05 Auroriax

So this turns out to be tricky. The best approach might be to add various directional keywords that represent animations, not wiping these until after the late rules then gathering all animations from them. These can only be on the right hand side of the rule (you can't match them) but they would work in late rules. Relative directions are also supported The current "auto-tweening" would then also need to be explicitly enabled with prelude flags (one for movement and one for action). There should be a warning (an error perhaps?) when you have auto-tweening but also have late rules that could invalidate existing autotweens. Might be nice to have a couple of extra animation modes, such as the "bump" animation many puzzle games have when attempting to make an invalid move.

Auroriax avatar May 19 '22 21:05 Auroriax