gmc-jam-3/objects/obj_bossSprite/Draw_0.gml

30 lines
561 B
Plaintext
Executable File

dirs += 5;
if mult == 0
{
mult = 2;
multgrav = .05;
}
mult += multgrav;
if typo == 0
multgrav -= .005;
if typo == 1
multgrav += .005;
if multgrav == -.05
typo = 1
if multgrav == .05
typo = 0
dirs += multgrav*20;
if !instance_exists(obj_talker)
draw_sprite_ext(spr_bossBarrier,0,x,y,mult,mult,dirs,c_white,1);
else
{
draw_set_alpha(.5);
draw_set_color(c_black);
draw_rectangle(0,0,1024,768,false);
draw_set_alpha(1);
draw_set_color(c_white);
}
draw_self();
draw_sprite(sprite25,0,x,768);