Htmovflag
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). If the moving sprite is bumping into another sprite, then the ID of that other sprite will be equal to htmovflag + 16384.