Hello boys and girls
Well, I’m creating a racing game for a final course project.
But I’d like to help me a little problem I encountered while creating the game. I wonder if i can do a countdown with pictures in. Png and be applied from the GUI Textures. Because a create all the png images And it is much better than this countdown
the examples:
1.png
2.png
3.png
go!.png
dkozar
February 27, 2013, 9:27pm
2
inception5:
Hello boys and girls
Well, I’m creating a racing game for a final course project.
But I’d like to help me a little problem I encountered while creating the game. I wonder if i can do a countdown with pictures in. Png and be applied from the GUI Textures. Because a create all the png images And it is much better than this countdown
https://www.youtube.com/watch?v=QFIp5JEaMaU
the examples:
1.png
2.png
3.png
go!.png
You can do it very elegantly using the timer class provided by eDriven. Take a look at these posts:
Post 1 (within the NGUI thread)
Post 2 (the Countdown thread)
What you need to do is replace label texts with textures. Something like this:
void OnGUI()
{
// iterating over the textures array, assuming the array of textures "YourTextures" given
GUI.Label(new Rect(Screen.width * 0.5f, Screen.height * 0.5f, 100, 100), YourTextures[_count]);
}