Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Does this tool provide a function interface to control the animation exported to the Pico-8 cart? Sticky

A topic by bitchunk created Oct 22, 2023 Views: 68
Viewing posts 1 to 1
Developer (3 edits)

Yes, there is a simple API usage example in the comments of the sample code.

Further details are provided in the Japanese manual. The following is a translation from Japanese.

Load animation data from the MAP data area.

anim = load_animation(mx, my, mw)
  • // mx: data start MAP coordinate X
  • // my: data start MAP coordinate Y
  • // mw: Width until data wrapping

Display animation.

anim.draw(x, y, anim_num, [base_num])
  • // x: coordinate X to display
  • // y: coordinate Y to display
  • // anim_num: Play animation ID
  • // base_num: base animation ID

Stop animation.

anim.stop = true

Resume animation.

anim.stop = false

Set animation frames.

anim.reset = 0
  • // set all frames to 0