|
Hello :} Okay so I'm attempting to create a FPS game set within space. At a stage where code needs to be implemented. Trying to figure out how to make a muzzle flash? I've made a plane so far and don't know what is additional required in terms of code? Help anyone? Thanks :}
(comments are locked)
|
|
You can create muzzle flashes easily by using textured planes in front of the camera. Alternatively you can use animated meshes, or particle effects. No matter which effect you will choose, you can show the effect by using a simple script that is sitting on the muzzle gameobject like:
Now activate the effect by something like
The gameobject will activate and deactivate itself when the effect is over. That way it will not consume any resources when not in use. Its says reference script on this behaviour is missing? Did I do something wrong ;/ I created the gameObject and linked with new script...
Dec 02 '10 at 11:47 AM
Daniele
(comments are locked)
|
