Closed nighca closed 3 weeks ago
fAnimations
.Now in builder, all the animations are frame animations, based on https://github.com/goplus/spx/pull/303 we do configure like this:
Set frameFrom
& frameTo
to specify frames, do not set from
& to
Set duration
to a fixed value (whatever the project or sprite or animation is), which corresponds to the time cost for sprite to move distance 1
P.S. For animations bound to state turn
, duration
corresponds to the time cost for sprite to turn by 1
degree. For now we do not support state turn
in Builder.
Set frameFps
to control the speed of frame animation, do not set fps
Do not set anitype
fixed by #303
Project: animation.zip
For sprite
Fighter
:Config:
Code:
There are some issues:
default
(which is bound asdefaultAnimation
) is played only once while sprite in default state. It is expecetd to be played repeatedly (see details in https://github.com/goplus/builder/issues/603#issuecomment-2180367864)fight
(played by callinganimate "fight"
) finished playing, the sprite does not return to the default state, while it keeps the last csotume of animationfight
If we call
step 50
, it is expected to play animationwalk
(which is bound to statestep
). However, the sprite playsfight
, and thendie
, and thenwalk
, and then panic: