Version 1.4.1
Animation Flags manages multiple animations for a single sprite by flagging start and end points of the animations for GameMaker Studio 2.3.3+
- Download the .yymps file
- Import the .yymps file into your project from the top menu
- Tools > Import Local Package
You can also drop the .yymps file downloaded from the Releases tab directly onto your GMS IDE and follow the prompts.
// Set up AnimationManager
animator = new AnimationManager("Player", spr_pixel_platformer_player);
// Add AnimationFlags to manager
animator.add_flag(new AnimationFlag("idle", 1, 7, 0.15));
animator.add_flag(new AnimationFlag("run", 10, 17, 0.15));
// Set active flag
animator.set_flag("run");
View a more detailed explanation Setup.
Go to the Wiki to view the documentation.
Many of the limitations will be fixed in future updates:
- Does not tell you if the animation ends
- Need to manually edit
AnimationFlag
start
andstop
indexes if the sprite frames used inAnimationManager
are changed AnimationFlag.speed
does not take Frame Information from the Image Editor or the Frame Speed from the Sprite Editor into consideration
- Pixel Platformer Player sprite in example created by @Dead Revolver
- Color palette in example from Dracula Theme
MIT License © Brent Frymire