segundo info

var __obj;
if (tchar = "NormalWeapon")
{
 if (can_shoot = true && left = true && av_shoot > 15)
 {
  __obj = instance_create(x-20,y,obj_bullet);
  with (__obj) { motion_set(180,8); }
  av_shoot -= 15;
  can_shoot = false; alarm[0] = 5;
 }
 if (can_shoot = true && right = true && av_shoot > 15)
 {
  __obj = instance_create(x+24,y,obj_bullet);
  with (__obj) { motion_set(0,8); }
  av_shoot -= 15;
  can_shoot = false; alarm[0] = 5;
 }
}

if (tchar = "SpecialWeapon" && wweapon == 1)
{
 if (sw_can_shoot = true && left = true)
 {
  __obj = instance_create(x-20,y-3+random(6),obj_swbullet);
  with (__obj) { motion_set(180,12); sprite_index = swbulletleft; }
  sw_balls -= 1; sw_can_shoot = false; alarm[4] = 3;
  if (sw_balls == 0) { tchar = "NormalWeapon"; }
 }
 if (sw_can_shoot = true && right = true)
 {
  __obj = instance_create(x+24,y-3+random(6),obj_swbullet);
  with (__obj) { motion_set(0,12); sprite_index = swbulletright; }
  sw_balls -= 1; sw_can_shoot = false; alarm[4] = 3;
  if (sw_balls == 0) { tchar = "NormalWeapon"; }
 }
}

Comentarios

Entradas populares de este blog

ROBOTICA 1

HTML5

INFORMÁTICA PRIMERO