SHOW:
|
|
- or go back to the newest paste.
1 | - | xx=device_mouse_x(0); |
1 | + | var xx = device_mouse_x(0); |
2 | - | yy=device_mouse_x(0); |
2 | + | var yy = device_mouse_x(0); |
3 | ||
4 | - | if(device_mouse_check_button(0,mb_left) and position_meeting(xx,yy,id)) |
4 | + | if (device_mouse_check_button(0, mb_left) && position_meeting(xx, yy, id)) { |
5 | - | ( |
5 | + | var dir = point_direction(x, y, xx, yy); |
6 | - | |
6 | + | obj_karakter.direction = dir; |
7 | - | dir=point_direction(x,y,xx,yy); |
7 | + | obj_karakter.speed = 3; |
8 | - | obj_karakter.direction=dir; |
8 | + | obj_karakter.image_angle = dir; |
9 | - | obj_karakter.speed=3; |
9 | + | } else { |
10 | - | obj_karakter.image_angle=dir; |
10 | + | obj_karakter.speed = 0; |
11 | - | |
11 | + | } |