Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if canfire > 0
- {
- inst = instance_create(x,y,obj_enemybullet);
- inst.sprite_index = spr_enemybullet5;
- inst.color = make_color_rgb(137+i,1+i,38+i);
- inst.direction = point_direction(x,y,obj_player.x,obj_player.y);
- inst.speed = 8;
- inst.turnspeed = 0;
- inst.movetimer = 1;
- inst.movetimer[0] = 5;
- inst.movetimer[1] = 10;
- inst.movetimer[2] = 20;
- inst.movetimer[3] = 30;
- inst.movetimer[4] = 40;
- inst.movetimer[5] = 50;
- inst.movetimer[6] = 60;
- inst.movetimer[7] = 70;
- inst.newturnspeed[0] = 4;
- inst.newturnspeed[1] = -4;
- inst.newturnspeed[2] = 4;
- inst.newturnspeed[3] = -4;
- inst.newturnspeed[4] = 4;
- inst.newturnspeed[5] = -4;
- inst.newturnspeed[6] = 4;
- inst.newturnspeed[7] = -4;
- inst.effect = 1;
- inst.effectstr = 0.2;
- i += 0.2;
- alarm[0] = 4;
- canfire -= 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement