Advertisement
radstronomical

FGD Helpful Functions

Jan 10th, 2024
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //pass in an angle (from 0 to 360) and a speed to move accordingly.
  2. function Move_In_Direction(_dir, _spd){
  3.     var _xspd = lengthdir_x(_spd, _dir);
  4.     var _yspd = lengthdir_y(_spd, _dir);
  5.    
  6.     move_and_collide(_xspd, _yspd, obj_collide)
  7. }
  8.  
Tags: GMS2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement