Flag Functions
akesi lili provides flag functions to manage the state of individual sprites by setting and checking flags. These functions allow you to control specific behaviors or properties of sprites based on their flag states.
flag
|sprite: Number, flag: Number|
Checks if a specific flag is active for the given sprite.
Parameters
sprite: The index of the sprite to check.flag: The flag to check.
Returns
true if the flag is active, false otherwise (Bool).
Example
is_active = flag(1, 2)
set_flag
|sprite: Number, flag: Number, value: Bool|
Sets the active state of a specific flag for the given sprite.
Parameters
sprite: The index of the sprite to modify.flag: The flag to set.value: The state to set the flag to (trueorfalse).
Example
set_flag(1, 2, true)
These flag functions are useful for managing sprite-specific behaviors and properties in akesi lili.