S
Shadowblitz16
Guest
can someone confirm if this is a bug in gms 1.4?
basicly I have separated my sine motion and my linear motion into two sections
I can confirm that my velocity is 5 and my angular is 0 when I come to line 43 and 44 however it doesn't seem to be doing anything.
basicly I have separated my sine motion and my linear motion into two sections
I can confirm that my velocity is 5 and my angular is 0 when I come to line 43 and 44 however it doesn't seem to be doing anything.
Code:
/// Update Projectile
//////////////////////////////////////////////////////////////////////////////////////////////////////
// Tail
//////////////////////////////////////////////////////////////////////////////////////////////////////
if ((instance_exists(spawner)) && (spawner.object_index != Projectile))
if (tails > 0)
{
scr_projectile_spawn(json, config[? "id"], 90, xstart, ystart)
tails --;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////
// Apply Movement
//////////////////////////////////////////////////////////////////////////////////////////////////////
if (update)
{
//////////////////////////////////////////////////////////////////////////////////////////////////////
// Wave Motion
//////////////////////////////////////////////////////////////////////////////////////////////////////
amplitude_value = clamp((amplitude_value + amplitude_accel) - amplitude_decel, amplitude_base, amplitude_peak);
oscillation_value = clamp((oscillation_value + oscillation_accel) - oscillation_decel, oscillation_base, oscillation_peak);
oscillation += degtorad(oscillation_value);
var _shift = amplitude * sin(oscillation);
oscillation_x += lengthdir_x(speed, angular);
oscillation_y += lengthdir_y(speed, angular);
x = oscillation_x + lengthdir_x(_shift, angular + 0);
y = oscillation_y + lengthdir_y(_shift, angular + 0);
//////////////////////////////////////////////////////////////////////////////////////////////////////
// Linear Motion
//////////////////////////////////////////////////////////////////////////////////////////////////////
x += lengthdir_x(velocity, angular + 90); //< seems to be offsetting it slightly
y += lengthdir_y(velocity, angular + 90); //< does nothing
var test = 0;
}