Prev: 42215 Up: Map Next: 42298
42274: Clamp Object To Ground
Tick the object timer and stop it at Y=175.
Input
IX Actor slot
Tick the object timer and clamp Y to the ground line.
ClampObjectToGround 42274 CALL TickObjectTimer Call TickObjectTimer.
42277 CALL MoveBySpeed Call MoveBySpeed.
42280 CP 175 Jump to ClampObjectToGround_WriteY if the object is still above the ground line.
42282 JR C,ClampObjectToGround_WriteY
42284 LD (IX+6),0 Write 0 to the thrust and the speed.
42288 LD (IX+5),0
42292 LD A,175 A=175.
ClampObjectToGround_WriteY 42294 LD (IX+4),A Write it as the object Y.
42297 RET Return.
Prev: 42215 Up: Map Next: 42298