Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by Petzi ( 7 years ago )
can = 0;
instance_activate_object(obj_darkness);
var angle = obj_darkness.angle;
instance_deactivate_object(obj_darkness);
surface = surface_create(630,480);
if (surface_exists(surface))
{
surface_set_target(surface);
draw_set_color(c_black);
draw_set_alpha(1);
draw_rectangle(0,0,630,480,false);
draw_set_blend_mode(bm_add);
with obj_player draw_sprite_ext(spr_darklight,0,x,y,1.1,1.1,angle,c_white,0.8);
with obj_playershot draw_sprite_ext(spr_darklight,0,x,y,0.6,0.6,angle,c_white,0.8);
with obj_playershot2 draw_sprite_ext(spr_darklight,0,x,y,0.7,0.7,angle,c_white,0.8);
with obj_darklantern {
if lit {
if visible draw_sprite_ext(spr_darklight,0,x,y,0.9,0.9,angle,c_white,0.8);
else draw_sprite_ext(spr_darklight,0,x,y,2,2,angle,c_white,0.8);
}
}
draw_set_blend_mode(bm_normal);
surface_reset_target();
}
Revise this Paste