Difference between revisions of "Htmovflag"

From EDukeWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
'''htmovflag''' has a nonzero value if the sprite is using a move command and it bumps into something (htmovflag is set to the return value of the movesprite function).  
 
'''htmovflag''' has a nonzero value if the sprite is using a move command and it bumps into something (htmovflag is set to the return value of the movesprite function).  
  
Depending if the moving sprite is bumping into another sprite, wall, floor or ceiling, a different value will be substracted to the ID of it. For example, the ID of another sprite will be equal to htmovflag - 16384.
+
Depending if the moving sprite is bumping into another sprite, wall, floor or ceiling, a different value will be substracted to the ID of it. For example, the ID of another sprite will be equal to htmovflag + 16384.
  
 
[[Category:Sprite structure members]]
 
[[Category:Sprite structure members]]

Revision as of 17:03, 22 September 2012

htmovflag has a nonzero value if the sprite is using a move command and it bumps into something (htmovflag is set to the return value of the movesprite function).

Depending if the moving sprite is bumping into another sprite, wall, floor or ceiling, a different value will be substracted to the ID of it. For example, the ID of another sprite will be equal to htmovflag + 16384.