Guest User

Untitled

a guest
Nov 24th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. text = [];
  2. text["1"] = self createFontString( "objective", 3 );
  3. text["1"] setPoint( "LEFT", "BOTTOMRIGHT", -640, -122 );
  4. text["1"].alpha = 0;
  5. text["1"].hideWhenInMenu = true;
  6. text["1"].sort = 1;
  7.  
  8. text = [];
  9. text["2"] = self createFontString( "objective", 3 );
  10. text["2"] setPoint( "LEFT", "BOTTOMRIGHT", -640, -122 );
  11. text["2"].alpha = 0;
  12. text["2"].hideWhenInMenu = true;
  13. text["2"].sort = 1;
  14.  
  15. curInUse = "1";
  16.  
  17. while( true )
  18. {
  19. ret = self waittill_any_return("powerup_kill", "powerdown");
  20.  
  21. if( ret == "powerup_kill" )
  22. {
  23.  
  24. text[ curInUse ] fadeOverTime( 0.5 );
  25. text[ curInUse ].alpha = 0;
  26. text[ curInUse ] moveOverTime( 0.5 );
  27. text[ curInUse ].y = -22;
  28.  
  29. if( curInUse == "1" )
  30. next = "2";
  31. else
  32. next = "1";
  33.  
  34. text[ next ] fadeOverTime( 0.5 );
  35. text[ next ].alpha = 1;
  36. text[ next ] moveOverTime( 0.5 );
  37. text[ next ].y = -64;
  38.  
  39. wait( 0.5 );
  40.  
  41. text[ curInUse ] setText( name( self.pers["LVL"] + 1 ) );
  42. text[ curInUse ] setPoint( "LEFT", "BOTTOMRIGHT", -640, -122 );
  43.  
  44. curInUse = next;
  45. }
  46. }
Add Comment
Please, Sign In to add comment