1 | function scr_pivotonpoint |
2 | { |
3 | var __theta = point_direction(sprite_xoffset, sprite_yoffset, arg0, arg1); |
4 | var __radius = point_distance(sprite_xoffset, sprite_yoffset, arg0, arg1); |
5 | __theta += direction; |
6 | var __xx = x + lengthdir_x(__radius, __theta); |
7 | var __yy = y + lengthdir_y(__radius, __theta); |
8 | scr_rotatearoundpoint |
9 | } |