createBar( color, width, height );
setBarScale( barFrac, scaleTime )
{
barWidth = ceil(self.width * barFrac);
if ( !barWidth ) barWidth = 1;
self.bar.frac = barFrac;
barWidth *= (barWidth > 0) * (barWidth <= self.width);
self.bar scaleOverTime( scaleTime, barWidth, self.height );
wait scaleTime;
}
doThis()
{
percent = 25/100;
progress = self createBar( (1,0,0), level.primaryProgressBarWidth + 50, level.primaryProgressBarHeight + 5 );
progress setPoint( "CENTER" );
progress setBarScale( percent, .6 );
}
createBar( color, width, height );
setBarScale( barFrac, scaleTime )
{
barWidth = ceil(self.width * barFrac);
if ( !barWidth ) barWidth = 1;
self.bar.frac = barFrac;
barWidth *= (barWidth > 0) * (barWidth <= self.width);
self.bar scaleOverTime( scaleTime, barWidth, self.height );
wait scaleTime;
}
doThis()
{
percent = 25/100;
progress = self createBar( (1,0,0), level.primaryProgressBarWidth + 50, level.primaryProgressBarHeight + 5 );
progress setPoint( "CENTER" );
progress setBarScale( percent, .6 );
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.