These two functions are used to move a given point from its current position in any given angle by a specified distance.
SYNTAX:
xMov% = MovePointX% (xPos%, yPos%, ang!, dist!) yMov% = MovePointY% (xPos%, yPos%, ang!, dist!)
INPUTS:
xPos%, yPos% (INTEGERs)
- The X and Y position of the point to move.
ang! (SINGLE)
- The desired moving angle (direction).
dist! (SINGLE)
- The desired moving distance (equivalent to pixels).
RESULT:
xMov% (INTEGER)
- This will be returned by the function MovePointX() and represents the X position of the moved point.
yMov% (INTEGER)
- This will be returned by the function MovePointY() and represents the Y position of the moved point.