Dummyplayersprite: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Matteus (talk | contribs)
No edit summary
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
When going underwater, a dummyplayersprite of PLAYERUNDERWATER is spawned. This sprite ID is tracked in dummy player sprite. This sprite is made to follow the player's position. The sprite is killed when the player moves back out of water.
Member of the [[player]] struct.  When wading in water, a dummy PLAYERUNDERWATER sprite is spawned. The ID of this sprite is tracked in '''dummyplayersprite'''. This sprite is made to follow the player's position, and is killed when the player moves back out of water.
 
This can be examined when using room-over-room features for water sectors.
 
[[Category:Player structure members]]

Latest revision as of 12:44, 26 July 2010

Member of the player struct. When wading in water, a dummy PLAYERUNDERWATER sprite is spawned. The ID of this sprite is tracked in dummyplayersprite. This sprite is made to follow the player's position, and is killed when the player moves back out of water.

This can be examined when using room-over-room features for water sectors.