Advertisement
Guest User

Untitled

a guest
Dec 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (Timer >= MoveTime and SendBack = false) or (Timer >=MoveTime2 and SendBack = true)
  2.     {
  3.         Random=floor(random(2)) 1;
  4.        
  5.         Timer = 0
  6.        
  7.         //------------------------------------------------------------------------------------------------------------------------------------\\
  8.         //Row 0: Only Left-Down ------ Right-Down
  9.         for (i=0; i<=200; i =2;)
  10.         {
  11.             if ( x=XStart (X*i) && y=YStart (Y*0) )
  12.             {
  13.                 if (SendBack = false)
  14.                 {
  15.                     x-=X;
  16.                 }
  17.                 if (SendBack = true)
  18.                 {
  19.                     x =X;
  20.                 }
  21.                     y =Y;
  22.                     exit;
  23.                 }
  24.             }
  25.         //Row 5: Only Left-Up ------ Right-Up
  26.         for (i=1; i<=200; i =2;)
  27.         {
  28.             if ( x=XStart (X*i) && y=YStart (Y*5) )
  29.             {
  30.                 if (SendBack = false)
  31.                 {
  32.                     x-=X;
  33.                 }
  34.                 if (SendBack = true)
  35.                 {
  36.                     x =X;
  37.                 }
  38.                 y-=Y;
  39.                 exit;
  40.             }
  41.         }
  42.         //Row 1,2,3 and 4: Left-Up or Left-Down ------ Right-Up or Right-Down
  43.         for (i=0; i<=200; i =1;)
  44.         {
  45.             if ( x=XStart (X*i) && y=YStart (Y*1) or y=YStart (Y*2) or y=YStart (Y*3) or y=YStart (Y*4) )
  46.             {
  47.                 if (Random = 1)
  48.                 {
  49.                     y =Y;
  50.                 }
  51.                 if (Random = 2)
  52.                 {
  53.                     y-=Y;
  54.                 }
  55.                 if (SendBack = false)
  56.                 {
  57.                     x-=X;
  58.                 }
  59.                 if (SendBack = true)
  60.                 {
  61.                     x =X;
  62.                 }
  63.                 exit;
  64.             }
  65.         }
  66.         //------Virus hits Computer-------\\
  67.         if (x <= XStart-X)
  68.         {
  69.             global.PcHealth -=20;
  70.             instance_destroy();
  71.         }
  72.         //------Virus hits Hackers computer-------\\
  73.         if (global.LevelEasy = true)
  74.         {
  75.             if (x >= XStart X*76)
  76.             {
  77.                 instance_destroy();
  78.             }
  79.         }
  80.         if (global.LevelMedium = true)
  81.         {
  82.             if (x >= XStart X*114)
  83.             {
  84.                 instance_destroy();
  85.             }
  86.         }
  87.         if (global.LevelHard = true)
  88.         {
  89.             if (x >= XStart X*150)
  90.             {
  91.                 instance_destroy();
  92.             }
  93.         }
  94.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement