goplus / spx

spx - A Scratch Compatible Go/Go+ 2D Game Engine for STEM education
https://builder.goplus.org
Apache License 2.0
100 stars 28 forks source link

#builder #603 add default animation & animation binding #289

Closed JiepengTan closed 2 months ago

JiepengTan commented 2 months ago

https://github.com/goplus/builder/issues/603

nighca commented 2 months ago

It seems that this is not included in this PR:

Support binding one animation to multiple statuses

xushiwei commented 2 months ago

Although it helps code reuse, it increases the cost of understanding, so I tend not to support this feature.

nighca commented 2 months ago

Although it helps code reuse, it increases the cost of understanding, so I tend not to support this feature.

@xushiwei Do you mean "Support binding one animation to multiple statuses"? If you prefer to limit that one animation can be bound to at most one status, what if the user want to use the same animation for two differnt statuses? We recommend him to create two animations with the same data?

JiepengTan commented 2 months ago

Although it helps code reuse, it increases the cost of understanding, so I tend not to support this feature.

The current implementation no longer requires the addition of the Awake method, so it no longer increases the cost of understanding