Jump to content

muzzleflash


cassius
 Share

Recommended Posts

Whats the best way to get a muzzleflash for a gun. I see that there is a muzzleflash texture with the engine but can't figure how to use it.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

My way is to have a 3D model with a muzzle flash already attached to it, you can give it a name too like "MuzzleFlash". Then in the engine after loading the model, you can keep an Entity pointer to the muzzle flash by using something like FindChild. After that, all you have to do is muzzle->Show() and muzzle->Hide().

 

For extra effect, you can attach a light to the muzzle object by creating a light after loading the model. You should then make the muzzle object the parent of the light so it doesn't go out of place.

Using Leadwerks Professional Edition (Beta), mainly using C++.

Windows 10 / Linux Mint, Visual Studio 2017. GPU: NVidia GeForce GTX970, CPU: Intel i7 7700K @ 4.20 GHz

Previously known as Evayr.

Link to comment
Share on other sites

I have a sprite and a light set up for my muzzleflash although its not quite in correct position yet.

Whats the best way to make it flash on and off? Will show hide be ok or do I need to put a delay between them? Thanks.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...