Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = [];
- text["1"] = self createFontString( "objective", 3 );
- text["1"] setPoint( "LEFT", "BOTTOMRIGHT", -640, -122 );
- text["1"].alpha = 0;
- text["1"].hideWhenInMenu = true;
- text["1"].sort = 1;
- text = [];
- text["2"] = self createFontString( "objective", 3 );
- text["2"] setPoint( "LEFT", "BOTTOMRIGHT", -640, -122 );
- text["2"].alpha = 0;
- text["2"].hideWhenInMenu = true;
- text["2"].sort = 1;
- curInUse = "1";
- while( true )
- {
- ret = self waittill_any_return("powerup_kill", "powerdown");
- if( ret == "powerup_kill" )
- {
- text[ curInUse ] fadeOverTime( 0.5 );
- text[ curInUse ].alpha = 0;
- text[ curInUse ] moveOverTime( 0.5 );
- text[ curInUse ].y = -22;
- if( curInUse == "1" )
- next = "2";
- else
- next = "1";
- text[ next ] fadeOverTime( 0.5 );
- text[ next ].alpha = 1;
- text[ next ] moveOverTime( 0.5 );
- text[ next ].y = -64;
- wait( 0.5 );
- text[ curInUse ] setText( name( self.pers["LVL"] + 1 ) );
- text[ curInUse ] setPoint( "LEFT", "BOTTOMRIGHT", -640, -122 );
- curInUse = next;
- }
- }
Add Comment
Please, Sign In to add comment