DexTool/LivingDexSS.gmx/scripts/sprite_wiggly_old.gml
2020-02-17 14:27:13 -06:00

19 lines
472 B
Plaintext

///sprite_wiggly() >> returns extra
var st_x = x+(19*global.icon_scale);
var st_y = y+(14*global.icon_scale);
if (point_distance(st_x, st_y, mouse_x, mouse_y) <= 19*global.icon_scale)
{
plus_x += (mouse_x-(st_x+plus_x))/room_speed*4;
plus_y += (mouse_y-(st_y+plus_y))/room_speed*4;
show_debug_message(point_distance(st_x, st_y, mouse_x, mouse_y))
}
else
{
plus_x += (st_x-(st_x+plus_x))/room_speed*2;
plus_y += (st_y-(st_y+plus_y))/room_speed*2;
}