MCPcopy
hub / github.com/4ian/GDevelop / getAnimation

Method getAnimation

GDJS/Runtime/spriteruntimeobject.ts:352–354  ·  view source on GitHub ↗

* Get the index of the animation being played. * @return The index of the new animation being played * @deprecated Use `getAnimationIndex` instead

()

Source from the content-addressed store, hash-verified

350 * @deprecated Use `getAnimationIndex` instead
351 */
352 getAnimation(): integer {
353 return this.getAnimationIndex();
354 }
355
356 getAnimationIndex(): integer {
357 return this._animator.getAnimationIndex();

Callers 15

Core.jsFile · 0.80
setAnimationMethod · 0.80
getThumbnailMethod · 0.80
updateSpriteMethod · 0.80
getThumbnailMethod · 0.80
getThumbnailMethod · 0.80
updateSpriteMethod · 0.80
getThumbnailMethod · 0.80
getObjectSizeInfoFunction · 0.80

Calls 1

getAnimationIndexMethod · 0.95

Tested by 1