SHARE
TWEET

Untitled

tyrz939 Jan 5th, 2017 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Check for input changes
  2. if input.up == true {pos_move=true; UP=1;}    
  3. else if input.up == false {pos_move=true; UP=0;}
  4.  
  5. if input.down == true {pos_move=true; DOWN=1;}
  6. else if input.down == false {pos_move=true; DOWN=0;}
  7.  
  8. if input.left == true {pos_move=true; LEFT=1;}
  9. else if input.left == false {pos_move=true; LEFT=0;}
  10.  
  11. if input.right == true {pos_move=true; RIGHT=1;}
  12. else if input.right == false {pos_move=true; RIGHT=0;}
  13.  
  14. if input.focus == true {pos_move=true; FOCUS=1;}
  15. else if input.focus == false {pos_move=true; FOCUS=0;}
  16.  
  17. if input.shoot_press == true {pos_move=true; SHOOT=1;}
  18. else if input.shoot_press == false {pos_move=true; SHOOT=0;}
  19.  
  20. if input.bomb_press == true {pos_move=true; BOMB=1;}
  21. else if input.bomb_press == false {pos_move=true; BOMB=0;}
  22.  
  23. // Record to array if something is pressed
  24. if pos_move == true && global.pause == 0 {
  25.     replay[timer,pos]=global.frame;
  26.     replay[up,pos]=UP;
  27.     replay[down,pos]=DOWN;
  28.     replay[left,pos]=LEFT;
  29.     replay[right,pos]=RIGHT;
  30.     replay[focus,pos]=FOCUS;
  31.     replay[shoot,pos]=SHOOT;
  32.     replay[bomb,pos]=BOMB;
  33.     pos++;
  34.     pos_move=false;
  35. }
RAW Paste Data
Top