So I’m trying to make it to where, depending if the player found all the secret items, displays a series of lets say three stars like in angry birds’ win screen. Only thing is I want to display them one after another. Would I have to use an if statement to check if the player got the three items and instantiate said textures on a fixed position?
Some terrible pseudo code to help you out…
int totalStars = 0;
if( GotEnoughFor3Stars() )
totalStars = 3;
else if( GotEnoughFor2Stars() )
totalStars = 2;
else if( GotEnoughFor1Star() )
totalStars = 1;
for( int i = 0; i < totalStars; i++ )
{
DisplayStar( xPos + (i * 50), yPos );
}
Obviously you’ll need to write the GotEnoughFor…() and DisplayStar functions yourself.
Cool. Thanks man.