Prev: AD69 Up: Map Next: AD93
AD86: Set Velocity Magnitude
Used by the routine at HandlerRhino.
Sets the speed of the X velocity of an actor but keeps the direction it is moving in.
Input
A The speed
IX Actor record
SetVelocityMagnitude AD86 BIT 7,(IX+$06) Jump to SetVelocityMagnitude_Store if the actor is moving right.
AD8A JP P,SetVelocityMagnitude_Store
AD8D NEG Negate the speed.
SetVelocityMagnitude_Store AD8F LD (IX+$06),A Set the X velocity of the actor.
AD92 RET Return.
Prev: AD69 Up: Map Next: AD93