
perc = frame / lastsubframe;
if (reverse_sub_effect == true) perc = 1 - perc;
if (invert_wave) d = -2 else d = 2;
pos = ((-360 * perc) + end_pos) + (__x * (spacing / 10));
angle = pos * 22 / 7 / 180;
if (letter == 0) o = -__x + dia;
tx = -__x + Math.cos(angle) * o;
tz = Math.sin(angle) * o;
ty = Math.sin(angle * 2) * (1 + (wave_height)) * d;
yrotate = -pos - 90;

