// effects routine

perc = frame / lastsubframe;
if (reverse_sub_effect == true) perc = 1 - perc;
angle = 44 / 7 * perc;
tx = - __x + __x * Math.cos(angle);
tz = - __y + __x * Math.sin(angle);
if (use_scaling) xscale = yscale = zscale = 1 - Math.sin(angle) / 2;
xrotate = 360 * perc * (x_rotations);
yrotate = - 360 * perc;
