- Home /
blood splatter
Hi all ok i have a quick question... i have a pretty extensive game going on... but my queries is this, is it posible that when the startgame button is pressed an animated blood splatter hits the screen, if so how would i go about creating this as i have no idea.. thx
Answer by Sundar · Aug 09, 2012 at 10:11 PM
You don't have to instantiate. Create GUITexture the way I have mentioned above.
public GUITexture bloodSplatTex;// assign the texture in inspector
void Start()
{
if( bloodSplatTex != null ) bloodSpaltTex.enabled = false;
}
void OnGUI()
{
if( GUIButton( buttonRect, "Start Game" ) )
{
bloodSpaltTex.enabled = true;
}
}
Answer by Sundar · Aug 09, 2012 at 05:47 PM
There are so many ways you can do it. Simple one is use GUITexture and a transparent texture with splattered blood all over it.
Make GUITexture cover the whole screen by setting all its pixel inset values to zero( X, Y, Width, Height ).
Hide it at the beginning of Game, then show it when the Start button selected.
As I said there are soo many ways to do it. This is a simple and quick way.
but how would i instantiante it to make work... thats the problem
Answer by domtate123 · Aug 10, 2012 at 12:19 AM
but how how would i make it appear only when the start game button is activated?
Your answer
![](https://koobas.hobune.stream/wayback/20220613075424im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Reduce Draw call for Multiple GUI Textures with same Texture 1 Answer
Screen Resolution and GUI cutoff issue. Android. 1 Answer
My GUITexture looks awful 2 Answers
Use the GUITexture to go to the next scene 1 Answer
Toggle GuiTexture 1 Answer