Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //pass in an angle (from 0 to 360) and a speed to move accordingly.
- function Move_In_Direction(_dir, _spd){
- var _xspd = lengthdir_x(_spd, _dir);
- var _yspd = lengthdir_y(_spd, _dir);
- move_and_collide(_xspd, _yspd, obj_collide)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement