|
This article or section is outdated and has not been fully updated to reflect the current version of SRB2.
Please help the Wiki by correcting or removing any misinformation, as well as adding any new information to the page.
|
|
To do 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;
mobj_t *ghost;
#ifdef HAVE_BLUA
if (LUA_CallAction("A_GhostMe", actor))
return;
#endif
ghost = P_SpawnGhostMobj(actor);
if (ghost && locvar1 > 0)
ghost->fuse = locvar1;
}
|
|