Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Timer >= MoveTime and SendBack = false) or (Timer >=MoveTime2 and SendBack = true)
- {
- Random=floor(random(2)) 1;
- Timer = 0
- //------------------------------------------------------------------------------------------------------------------------------------\\
- //Row 0: Only Left-Down ------ Right-Down
- for (i=0; i<=200; i =2;)
- {
- if ( x=XStart (X*i) && y=YStart (Y*0) )
- {
- if (SendBack = false)
- {
- x-=X;
- }
- if (SendBack = true)
- {
- x =X;
- }
- y =Y;
- exit;
- }
- }
- //Row 5: Only Left-Up ------ Right-Up
- for (i=1; i<=200; i =2;)
- {
- if ( x=XStart (X*i) && y=YStart (Y*5) )
- {
- if (SendBack = false)
- {
- x-=X;
- }
- if (SendBack = true)
- {
- x =X;
- }
- y-=Y;
- exit;
- }
- }
- //Row 1,2,3 and 4: Left-Up or Left-Down ------ Right-Up or Right-Down
- for (i=0; i<=200; i =1;)
- {
- if ( x=XStart (X*i) && y=YStart (Y*1) or y=YStart (Y*2) or y=YStart (Y*3) or y=YStart (Y*4) )
- {
- if (Random = 1)
- {
- y =Y;
- }
- if (Random = 2)
- {
- y-=Y;
- }
- if (SendBack = false)
- {
- x-=X;
- }
- if (SendBack = true)
- {
- x =X;
- }
- exit;
- }
- }
- //------Virus hits Computer-------\\
- if (x <= XStart-X)
- {
- global.PcHealth -=20;
- instance_destroy();
- }
- //------Virus hits Hackers computer-------\\
- if (global.LevelEasy = true)
- {
- if (x >= XStart X*76)
- {
- instance_destroy();
- }
- }
- if (global.LevelMedium = true)
- {
- if (x >= XStart X*114)
- {
- instance_destroy();
- }
- }
- if (global.LevelHard = true)
- {
- if (x >= XStart X*150)
- {
- instance_destroy();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement