- Home /
How to make muzzle flashes for an automatic rifle
Hello,
I'm making an FPS game. I have made a shoot function aswell as a shooting animation. Only how to do muzzle flashes for my gun? The shoot anim is around 0.07 seconds. I've tried to merge the muzzle flash with the animation, but sometimes the muzzle flash wouldn't disapear. Any tips on how to do it?
Can you explain how you've tried so far? There are dozens of ways to create this effect.
Well, I've tried alot of scripts and as said, I've also tried ro merge it in the animation, but when I stop shooting the animation stays at the place it stopped the animation, so sometimes the muzzle flash wouldn't disappear
Is the only animation the one to fire? Have you tried adding an "idle" animation where it is hidden, and switching back to that after you play the shoot animation?
Well, I have an idle animation and a script that says when I stop shooting, it will play the idle animation. But when I stop firing, it "pauses" the shoot animation. So sometimes the muzzle flash will still be there, but with the idle animation played.
Answer by Sethhalocat · May 12, 2015 at 09:39 PM
I would make a seperate script to spawn in a muzzle flash everytime you hit the shoot button. I did that in my monkey assault game (which was lost when my pc broke...) also you can delete the flash after a seccond in my way or urs and make it continuously spawn.
Your answer
Follow this Question
Related Questions
Exp / Inp Fbx Animated character problems 0 Answers
Unexpected token: targetPos 1 Answer
AppendProject error 2 Answers
Asset store 1 Answer