woods
Member
back to fighting with lengthdir..
i want the flare to appear along the outer edge of the sun and shoot out from center.
i have the flare being created on a timer in the sun object.
instance_create(x + lengthdir_x(300,image_angle), y + lengthdir_y(300,image_angle), obj_flare);
this give me the flare at the right side of the sun .. shooting in random directions. i cant figure out how to rotate the create point along the sun's edge...
obj_sun_3 step event -
obj_flare create event
i want the flare to appear along the outer edge of the sun and shoot out from center.
i have the flare being created on a timer in the sun object.
instance_create(x + lengthdir_x(300,image_angle), y + lengthdir_y(300,image_angle), obj_flare);
this give me the flare at the right side of the sun .. shooting in random directions. i cant figure out how to rotate the create point along the sun's edge...
obj_sun_3 step event -
Code:
/// cycle flare
if (delay_flare >= 0)
{delay_flare -= 1;}
else
{
instance_create(x + lengthdir_x(300,image_angle), y + lengthdir_y(300,image_angle), obj_flare);
delay_flare = room_speed * 5; // resets timer
}
Code:
/// resize
image_xscale = 10;
image_yscale = 10;
image_speed = 0.2;
image_angle = irandom(360);