Advertisement
Purianite

Untitled

Mar 21st, 2012
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if canfire > 0
  2. {
  3.     inst = instance_create(x,y,obj_enemybullet);
  4.     inst.sprite_index = spr_enemybullet5;
  5.     inst.color = make_color_rgb(137+i,1+i,38+i);
  6.     inst.direction = point_direction(x,y,obj_player.x,obj_player.y);
  7.     inst.speed = 8;
  8.     inst.turnspeed = 0;
  9.     inst.movetimer = 1;
  10.     inst.movetimer[0] = 5;
  11.     inst.movetimer[1] = 10;
  12.     inst.movetimer[2] = 20;
  13.     inst.movetimer[3] = 30;
  14.     inst.movetimer[4] = 40;
  15.     inst.movetimer[5] = 50;
  16.     inst.movetimer[6] = 60;
  17.     inst.movetimer[7] = 70;
  18.     inst.newturnspeed[0] = 4;
  19.     inst.newturnspeed[1] = -4;
  20.     inst.newturnspeed[2] = 4;
  21.     inst.newturnspeed[3] = -4;
  22.     inst.newturnspeed[4] = 4;
  23.     inst.newturnspeed[5] = -4;
  24.     inst.newturnspeed[6] = 4;
  25.     inst.newturnspeed[7] = -4;
  26.     inst.effect = 1;
  27.     inst.effectstr = 0.2;
  28.     i += 0.2;
  29.     alarm[0] = 4;
  30.     canfire -= 1;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement