ShaunJS

JumpInDirection()

Jul 30th, 2017
6,148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /// @description JumpInDirection(distance, direction)
  2. /// @param distance
  3. /// @param direction
  4.  
  5. // Teleports parent object to a spot based on given direction and distance
  6.  
  7. x += lengthdir_x(argument0,argument1)
  8. y += lengthdir_y(argument0,argument1)
Advertisement
Add Comment
Please, Sign In to add comment