Advertisement
TheHirou

Another example for sequences

Jun 12th, 2022
680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if instance_exists(sequenceTest)
  2. {
  3.  
  4.     switch (global.currentBox)
  5.     {
  6.        
  7.             case 0:
  8.             break;
  9.        
  10.             case 1:
  11.                 disableCameraMovement(true)
  12.                 if obj_player.y>0           {obj_player.y-=4; obj_player.sprite_index=global.downSprite; sequenceStart()}
  13.                 if obj_player.y<=0      {obj_player.sprite_index=global.downIdleSprite; sequenceEnd()}
  14.             break;
  15.        
  16.             case 2:
  17.                
  18.             break;
  19.        
  20.             case 3:
  21.                
  22.             break;
  23.            
  24.     }
  25.  
  26. }
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement