You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now we allow the developers to choose blocking or non-blocking APIs when doing time-consuming operations like broadcasting messages or playing audios:
While there's no non-blocking choice for animation-related APIs, which includes Animate, Glide, Step, Turn & TurnTo.
Non-blocking animation call is important in many cases, for example, when we are controlling more than one sprites together and we want them to animate simultaneously:
// For now there's no easy way to let A & B glide simultaneously
spriteA.glide0, 0, 1
spriteB.glide100, 100, 1
This is proposal to add non-blocking version for these APIs:
Animate
// existed (blocking):func (p*Sprite) Animate(namestring)
// new added (non-blocking with `wait: false`):func (p*Sprite) Animate(namestring, waitbool)
For now we allow the developers to choose blocking or non-blocking APIs when doing time-consuming operations like broadcasting messages or playing audios:
While there's no non-blocking choice for animation-related APIs, which includes
Animate
,Glide
,Step
,Turn
&TurnTo
.Non-blocking animation call is important in many cases, for example, when we are controlling more than one sprites together and we want them to animate simultaneously:
This is proposal to add non-blocking version for these APIs:
Animate
Glide
Step
Turn
TurnTo
The text was updated successfully, but these errors were encountered: