Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xx=device_mouse_x(0);
- yy=device_mouse_x(0);
- if(device_mouse_check_button(0,mb_left) and position_meeting(xx,yy,id))
- (
- dir=point_direction(x,y,xx,yy);
- obj_karakter.direction=dir;
- obj_karakter.speed=3;
- obj_karakter.image_angle=dir;
- )
- else
- (
- obj_karakter.speed=0;
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement