||This article or section is outdated and has not been updated to reflect the release of SRB2 v2.2.
Please help the Wiki by correcting or removing any misinformation, as well as adding any new information to the page.
Update for 2.2.0:
- Var1 sets duration in tics, if non-zero
A_GhostMe is an action that is used to spawn an afterimage (or "ghost") of the actor's current appearance at its current position; the afterimage will share the same sprite, color, scale and gravity as the actor, but will be partially translucent and will disappear after 8 tics. In SRB2, this action is used by the sparkles displayed at the Ideya Drone's location when it acts as the goal for the track in a NiGHTS level.
Code – A_GhostMe
// Function: A_GhostMe
// Description: Spawns a "ghost" mobj of this actor, ala spindash trails and the minus's digging "trails"
// var1 = duration in tics
// var2 = unused
void A_GhostMe(mobj_t *actor)
INT32 locvar1 = var1;
if (LUA_CallAction("A_GhostMe", actor))
ghost = P_SpawnGhostMobj(actor);
if (ghost && locvar1 > 0)
ghost->fuse = locvar1;