src/scene/shared/field_effect_set_sprite_priority.c
Setting an effect's sprite priority by hand: the copy of actor_set_sprite_priority.c that comes with a late field-effect spawner. More…
Included by anemos_inner_sanctum.c and mars_lighthouse_entrance.c.
Functions
| Name | Description | |
|---|---|---|
void | scEffectSetSpritePriority (ACTOR *actor, Sint32 priority) | Fixes the priority of the actor's sprite and its shadow, which then no longer follows the map metatile under it (clears ACTOR_PRIORITY_AUTOMATIC). |
Description
Setting an effect's sprite priority by hand: the copy of
actor_set_sprite_priority.c that comes with a late field-effect spawner.
Anemos Inner Sanctum and the Mars Lighthouse entrance link the first copy
early, and near their end a field-effect spawner with this copy just before
it; only that spawner calls this one.
Functions in detail
scEffectSetSpritePriority
void scEffectSetSpritePriority(ACTOR *actor, Sint32 priority)
Fixes the priority of the actor's sprite and its shadow, which then no longer
follows the map metatile under it (clears ACTOR_PRIORITY_AUTOMATIC).
References Sint32.
Referenced by scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at line 12 of file field_effect_set_sprite_priority.c.