Melonjs Sprites And Animation

Use this skill when creating sprites, playing frame animations, or working with texture atlases in melonJS. Covers Sprite construction from a plain image or an atlas region, addAnimation/setCurrentAnimation, TextureAtlas for TexturePacker/ShoeBox/Aseprite, tint, flip, NineSliceSprite, and the centred anchorPoint that offsets naive positioning. Triggers on: Sprite, new Sprite, addAnimation, setCurrentAnimation, isCurrentAnimation, TextureAtlas, TexturePacker, Aseprite, ShoeBox, atlas, region, framewidth, frameheight, tint, flipX, flipY, NineSliceSprite, animation.

melonjs 3dd45ce 7.0 KB Updated

File contents

melonjs/melonjs/tree/main/packages/melonjs/skills/melonjs-sprites-and-animation commit 3dd45ce0b6

Frequently asked questions

npx skillmds@latest add melonjs/melonjs-sprites-and-animation