Тёмный

Spawning The Muzzle Flash - #15 Creating A First Person Shooter (FPS) With Unreal Engine 4 

Virtus Learning Hub
Подписаться 236 тыс.
Просмотров 86 тыс.
50% 1

Today we take a look at how we can spawn a muzzle flash from the muzzle point in our weapon when firing. We do this by spawning the particle effects at the socket location.
We also go over how we can scale the muzzle flash using blueprints inside of UE4.
► Resources: virtushub.com/p/resources
Unreal Engine 4 Beginner Tutorial Series:
• Creating Games For Beg...
Blueprints Creations Series
• Creating Gameplay Mech...
♥ Subscribe for new episodes weekly! bit.ly/1RWCVIN
♥ Don't forget you can help support the channel on Patreon! / virtushub
Virtus Learning Hub // Media
● Facebook Page - / virtushub
● Twitter Page - / virtushub
● Website - www.virtushub.com

Опубликовано:

 

3 авг 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 176   
@brunnersamuel4615
@brunnersamuel4615 5 лет назад
Use spawn emitter attached ( keep location an rotation empty, add emitter and attach to component to skeleton) will make the muzzle flash follow gun rotation when rotating fast
@F0LI
@F0LI 5 лет назад
How do i attach to component?
@joenofoa5223
@joenofoa5223 4 года назад
Dude you are a fucking legend!!!! It’s been 30 minutes of me trying to figure out what the hell is wrong and all I had to do was disconnect location and rotation. Cheers.
@alekosthecrow
@alekosthecrow 4 года назад
But... it's not supposed to follow it...
@brunnersamuel4615
@brunnersamuel4615 4 года назад
@@alekosthecrow lol
@richardwang3778
@richardwang3778 4 года назад
when i use emitter attached and attach it to the skeleton, the muzzle flash is weirdly rotated and is not at the right place
@VirtusEdu
@VirtusEdu 7 лет назад
Check out today's video where we take a look at how we can a spawn a muzzle flash when shooting our rifle. Enjoy!
@StationXGaming0
@StationXGaming0 4 года назад
Dude. Amazing. Went from knowing virtually nothing about game dev to following your series up to now. Very good work explaining everything too.
@MZONE3D
@MZONE3D 6 лет назад
Literally the best tutorial series on RU-vid!
@xXrandomryzeXx
@xXrandomryzeXx 3 года назад
I love how you make each tutorial with the idea that there wous be also people who arent following the tutorials and just looking for a specific thing to do. I myself follow the tutorials from the start.
@TheCouchPalsChannel
@TheCouchPalsChannel 2 года назад
For those who don't see the muzzle effect, re-opening the project properly loaded all the effects for me.
@Jarlovinss
@Jarlovinss 2 года назад
thx
@haroo5738
@haroo5738 3 года назад
idk why but i find the comments from 3 years ago sad, so many people probably gave this up not only that they have no clue about covid 19 jesus
@the_specialist2051
@the_specialist2051 7 лет назад
I had absolutely no problem with the Ammo Count because I accidentally had it set to ">=" instead of just ">" lol thanks for that!
@BuddhiAlahendra
@BuddhiAlahendra 7 лет назад
Good tutorial.Your channel is very smart and easy to use.thanks
@yaolegoleynik
@yaolegoleynik 5 лет назад
Thank you! Its realy cool tutorials
@Sunkendrew
@Sunkendrew 5 месяцев назад
I learned so much thank you.
@mrbulls5487
@mrbulls5487 6 лет назад
for muzzle effect just use p_explosion if you want the closest effect
@ThePellizzetti
@ThePellizzetti 5 лет назад
Thanks!
@escorpianoyqueee
@escorpianoyqueee 5 лет назад
at 4:10, you are trying to know the "player weapon"... but that base class it is already THE weapon, while playing you just need to Get reference to self instead of what you did.
@MusicForKidsWorld
@MusicForKidsWorld 7 лет назад
Great tutorial!!
@godgamer3180
@godgamer3180 2 года назад
For people who are still struggling with the spawn emitter, go to your projectile to the event begin play after the play sound at location and put the spawn emiter, connect the get world location(from the static mesh) to the location. Its easier that way.
@Video-by6lp
@Video-by6lp 5 лет назад
Thank you !)
@jespervanderweide4223
@jespervanderweide4223 7 лет назад
Are you going to add the project to your website
@PopstarDracula
@PopstarDracula 2 года назад
For sound: go to 4:49. See how he has cast to first person linked into spawn emitter? Drag that pin out, spawn sound at location. Pick a sound. It should automatically link player>sound>emitter. Done.
@gamedevpaddy3944
@gamedevpaddy3944 3 года назад
that fix that you made for the ammo, i had that fixed before hand haha
@alexjr977
@alexjr977 3 года назад
ThankX
@AlfexOmega
@AlfexOmega 7 лет назад
love these tutorials :D
@regulargamer4974
@regulargamer4974 6 лет назад
why there is no muzzle flash FX in the infinity blade assets ?
@Sweet._.Serenade
@Sweet._.Serenade 5 лет назад
yes same here !! Any solutions ?
@roylippold5538
@roylippold5538 7 лет назад
Hello, Where do you get the zelda character? Can you give me the download link? Or can you take it for download?
@richardwang3778
@richardwang3778 4 года назад
EVERYONE IF U CAN'T FIND THE MUZZLE FLASH RELOAD INFINITY BLADE EFFECTS INTO YOUR PROJECT
@minininjacowz
@minininjacowz 3 года назад
infinity blade is not in the shop anymore, i personally use twinblast "nitro_muzzleflash".
@muhamadsaber7170
@muhamadsaber7170 4 года назад
In Ak blueprint,then casting to third person to get a reference to Ak blueprint. maybe because you're doing it so quickly
@tilted.3809
@tilted.3809 7 лет назад
hey Virtus. this Tutorial rly helps me. But pls show us how to add shoot sounds. ( sorry for my English i'm from Germany and in the 8 Grade hehe) THX!! I wish you a nice day.
@SolitarySubstructure
@SolitarySubstructure 7 лет назад
Search google for "gunshot .wave file" choose one you like and download it. then import the .wave into UE4. Open your Thirdperson BluePrints. Find your fire weapon area. "Fire weapon"--->drag off node and type in "play sound" or "Spawn sound". Then select what sound you want to play when you press "Fire Weapon". Or you can add Sound component to your Projectile_Base_BluePrint. Select sound from there. Try to play sound in your Projectile BP. so when u are out of ammo your gun makes no sound
@MoshiMoshiDoppio
@MoshiMoshiDoppio 6 лет назад
He did, You can just find any sound you like and add It to the projectile base
@justboy5182
@justboy5182 6 лет назад
I am also from Germany, I think he add a shoot sound in Video 14 at the end.
@skatecatmovies7275
@skatecatmovies7275 6 лет назад
Thanks!!!!!!!!!
@BrushEm
@BrushEm 6 лет назад
Input left mouse > play sound (____)
@cettura
@cettura 4 года назад
when you walk while shooting, the muzzle flash doesnt fit on your muzzle. its going through your weapon. how can we fix this problem? PLS HELPPPP!!!
@cettura
@cettura 4 года назад
I fixed it. You should pick "spawn emitter attached"
@ahmedelsayed5884
@ahmedelsayed5884 4 года назад
Thanks, it helps me
@rororororo89
@rororororo89 4 года назад
@@cettura what settings are u using on the spawn emitter attached? im using it but its not working either
@Nasser3j
@Nasser3j 4 года назад
It didn’t work with me how did you do it?
@tejasmaloor2507
@tejasmaloor2507 3 года назад
I know this is six months old but if someone still faces issue on how to use the spawn emitter attached, First you need to attach the skeletalmesh of the equipped weapon to the attach to component of the emitter Than u need to type in the socket name of the muzzle in the attach point name. Hope it helps someone
@maxime4052
@maxime4052 3 года назад
You are the best
@kjgrizzly11
@kjgrizzly11 6 лет назад
How would I get the muzzle flash to show on a server/ client relationship? I have the bullets visible on both, but the muzzle flash is eluding me.
@alexjr977
@alexjr977 3 года назад
If you are not able to see muzzle effect in blade effects then restart engine then you definitely get them
@dgzone02
@dgzone02 4 года назад
i am using unreal engine 4.25 in this version it is not supported and cannot go back to old version what can i do help me
@slenderhacker207
@slenderhacker207 7 лет назад
Hei how did you learn to use blueprint?From a book?From a youtouber?
@brettr4208
@brettr4208 4 года назад
sparks dont line up with the main muzzle flash and i would like to know how i use just the sparks
@jeroenverraes2193
@jeroenverraes2193 7 лет назад
Hey i have a question, if i type in event begin play by blueprints animation graph i can't find it between all possible actoins why is this because i see it doing other people, This is the same for left mouse button etc.
@jeroenverraes2193
@jeroenverraes2193 7 лет назад
Does someone know how to fix this? It would be great if someone can help because i can go on with my first game
@jeroenverraes2193
@jeroenverraes2193 7 лет назад
Nice video btw like your channel so much, watched a lot of videos from you this week and liked them all
@jeroenverraes2193
@jeroenverraes2193 7 лет назад
JendoScout Thx man that was the problem now it works fine
@battleofcreep6926
@battleofcreep6926 4 года назад
I made a quick 2d particle effect for a 2d muzzle flash, but i cant get it to rotate according to the sockets rotation even though i did what you did exactly is there anything i am missing?
@chenariana3482
@chenariana3482 4 года назад
Same Problem
@ashleygoulding4803
@ashleygoulding4803 5 лет назад
Are we allowed to use the assets from the marketplace and this video series commercially?
@chenoa405
@chenoa405 5 лет назад
I'm not sure about the assets from his website, but you can use the ones from the UE4 marketplace.
@nova0wraith290
@nova0wraith290 5 лет назад
If you ads while sprinting your camera still switches and looks weird. How do we make this impossible to do?
@AshleyBlackwater
@AshleyBlackwater 5 лет назад
Super new to this myself but if this isn't fixed later in the series then something along the lines of "if sprinting then disable ads camera" might work?
@nukima11
@nukima11 6 лет назад
My muzzle flash just repeatedly flashes in place. I can walk around it and everything, it won't go away. I don't understand.
@comment3826
@comment3826 6 лет назад
for me it says when i install could not copie to project pls help
@BrushEm
@BrushEm 6 лет назад
How do i make the gun follow where i look?
@anthonymaxsalien
@anthonymaxsalien 5 лет назад
that should be in the past videos he did. plus he has a playlist so look for that and he will teach you
@omeremrekilinc2785
@omeremrekilinc2785 5 лет назад
the infinity blade: effect is not compatible with the version 4.21.1 of unreal engine. What do I do?
@VirtusEdu
@VirtusEdu 5 лет назад
Typically Unreal Engine updates the comparability of the pack within a couple weeks of release. You can either use a older version of the engine or hold tight. Best of luck!
@owngamesgamer4030
@owngamesgamer4030 5 лет назад
if can find st good for muzzle flash in that use p_impact_player_fire_strong but edit it and delete impact in editor
@alexjr977
@alexjr977 3 года назад
If you are not able to see muzzle effect in blade effects then restart engine then you definitely get them
@marioshrodotou7219
@marioshrodotou7219 3 года назад
@@alexjr977 Thank you so much !!
@alexjr977
@alexjr977 3 года назад
@@marioshrodotou7219 :)
@comfychairstudios746
@comfychairstudios746 7 лет назад
Is anyone else having trouble with .uasset files? it seems like the one type of file that should work.... doesn't for me for some reason. Any ideas/fixes?
@alexjr977
@alexjr977 3 года назад
If you are not able to see muzzle effect in blade effects then restart engine then you definitely get them
@HappyMrGhost
@HappyMrGhost 6 лет назад
One small issue I'm noticing is that if you strafe and fire, it's finishes playing the muzzle animation at the location that it spawned. So if the animation was longer, it would continue playing in the air where it was spawned, and not keep it's location at the muzzle. Any way to fix this?
@HappyMrGhost
@HappyMrGhost 6 лет назад
Thanks for the tip :)
@nukima11
@nukima11 6 лет назад
Rebecca Rodriguez okay, how do I do that?
@beverleycorey4454
@beverleycorey4454 6 лет назад
Wouldn't the smoke move in relation to the muzzle then? EG the smoke would always be in your face no matter how you move, jump, strafe, or fall. Perhaps it would be better to speed up the emitter animation/reduce the lifetime? The Chicken_Master Muzzle Flash seems to be moving in slow motion compared to a real muzzle flash
@rebeccarodriguez584
@rebeccarodriguez584 6 лет назад
that depends on how you did it. two ways this can be achieved, either spawn emitter attached or create a blueprint class with just a particle and use the attach to blueprint node and use access functions to change things as you wish. as far as the slow motion I have not seen this, and the relation to position can be fixed by using a random rotation on the emitter that is spawned at your location. if you use the blueprint method i advise you set size in blueprint to keep from having to cast to it later, that way you will on have to focus on spawning it. turn off auto activate in the blueprint and have it to activate on event begin play and destroy it after the time of the particle, use time or a delay.
@sirplayalot1020
@sirplayalot1020 6 лет назад
How do i import my own gunshot???
@chrissolomos5895
@chrissolomos5895 5 лет назад
need help for some reason the effect is coming out from the bone even if i move the muzzle
@alexjr977
@alexjr977 3 года назад
If you are not able to see muzzle effect in blade effects then restart engine then you definitely get them
@PreciseAce
@PreciseAce 7 лет назад
lol ive done the things in the past three vids by myself. But this way is easier lmao
@jdmeyer1578
@jdmeyer1578 7 лет назад
Hi, Thanks for the awesome tutorials! I do have one problem though, I wanted to design my own pistol in blender, so I imported that, but I want a different stance. So it looks like he's holding a pistol, not an AK. I downloaded the animations pack you told me to in the first video, but I'm wondering how I apply your Swat skin onto the animation. Thanks!
@OctoberFest
@OctoberFest 7 лет назад
When you import the .fbx animation, there should be an option to select a Skeletal. You can just set it to the swat skeleton. Everything else should automatically configure. Hope this helps :)
@SolitarySubstructure
@SolitarySubstructure 7 лет назад
go to mixamo, upload your "SWAT" character, search for "Pistol". Make sure you check the Box [in place] Import into UE create BlendSpace like before. I created that BS first then switched to rifle animations later
@jdmeyer1578
@jdmeyer1578 7 лет назад
You sir, are incredible. Thank you.
@iamplaceholder
@iamplaceholder 5 лет назад
The get socket rotation for the muzzle flash doesn't seem to work for me. Flash always fires toward the same direction regardless of which way the camera is facing.
@johnholmstrom4212
@johnholmstrom4212 4 года назад
This is because the muzzle socket never actually rotates. The muzzle location moves, but the player rotates. So you need to find a way to set the location of the emitter to your character's rotation.
@johnholmstrom4212
@johnholmstrom4212 4 года назад
Rotation* of the emitter, sorry
@bunnykill
@bunnykill 3 года назад
the explotion of the muzzle flash now comes from the right side of my muzzle but everything is the way you did it .. and i cant seem to fix it.
@levioptionallastname6749
@levioptionallastname6749 3 года назад
It is called chicken master because of the feathers.
@not_herobrine3752
@not_herobrine3752 5 лет назад
5:09 * hits compile and plays game * * presses left click * *THE WORLD ENDS*
@BitsAndBytes442
@BitsAndBytes442 4 года назад
HEY I CANT GET THE REFERENCE TO EQUIPPED WEAPON AT 4:25
@aidenmarcus1545
@aidenmarcus1545 4 года назад
for emmiter template in spawn emitter its chicken master muzzle flash thingy
@thatinsomniac324
@thatinsomniac324 7 лет назад
Can you make a survival game like Subnautica or Ark Survival Evolved with the gathering, crafting, ect? I wanna make a game like that and I wanna see if you could make a series like that in the future :)
@yegr7763
@yegr7763 5 лет назад
CrowGuy don’t market your game as survival, the market is too overcrowded. You should make a shooter with survival aspects or something like that so people aren’t turned away.
@AkshayKumar-cl4il
@AkshayKumar-cl4il 3 года назад
I had problem in getting socket location for skeletal mesh.. Engine version is 4.25 Plzz help me ASAP
@skreet7251
@skreet7251 2 года назад
just put a scene in front of the barrell of the gun works fine
@GameDevAraz
@GameDevAraz 3 года назад
I Must Admit, Your Tuts Are Great, But The Image Presenting The video, Very Overwhelming
@Sloobot
@Sloobot 6 лет назад
I can't find the muzzle effect in infinity blade effects ! Im using UE4 4.19 !
@Sweet._.Serenade
@Sweet._.Serenade 5 лет назад
same
@Monster-mw1ed
@Monster-mw1ed 6 лет назад
where did he get the muzzle flash static mesh what the heck
@alexjr977
@alexjr977 3 года назад
If you are not able to see muzzle effect in blade effects then restart engine then you definitely get them
@casparnieuwland
@casparnieuwland 7 лет назад
Virtus, when i crouch and than run while crouching i run with the speed of crouching the same with aim etc. when are we gonna fix these problems? And also when you run you can aim.
@soulhax
@soulhax 7 лет назад
Yep, I was saying same thing on previous parts :).
@casparnieuwland
@casparnieuwland 7 лет назад
Divisor I know but its still not fixed so i also sad it
@eugenecarragher22
@eugenecarragher22 7 лет назад
In your character blueprint create a branch from the pressed of your sprint input and set the condition as CrouchTrue, Leave the True empty and attatch the set sprintTrue into the false :) hope this helps
@eugenecarragher22
@eugenecarragher22 7 лет назад
Caspar Nieuwland on the release node you make another branch with CrouchTrue as the condition. If true it will set max walk speed as 300, of false or will set max walk speed at 600
@numberonefarm2000
@numberonefarm2000 4 года назад
My bullets were working fine until I added the muzzle flash but now they go up can any one help me
@adenmoroz
@adenmoroz 3 года назад
My effect is shooting backwards... anyone have a fix?
@antonr1194
@antonr1194 3 года назад
if you press fire it goes to negative values until u unpress it
@JackFollows97
@JackFollows97 4 года назад
Try P_OrePile_Explosion!
@P3RCY
@P3RCY 5 лет назад
When I play the game and fire the weapon, the muzzle flash pops up, but stays there and floats in mid air
@VirtusEdu
@VirtusEdu 5 лет назад
Are you using the same particle system as me, but if that is the case you can always destroy the component after you've spawned it? If you want a bit of extra help, I advice you checkout our Discord community which has over 3,000 over Unreal Engine 4 developers! discord.gg/hs37bev
@JcUltra
@JcUltra 4 года назад
muzzle flash stays on screen and in place were character fired from anyone have any advice to fix this?
@alexjr977
@alexjr977 3 года назад
If you are not able to see muzzle effect in blade effects then restart engine then you definitely get them
@ethansherr3281
@ethansherr3281 3 года назад
You are in the WeaponBase, but then you get character and Get Equiped WeaponBase, then spawn a muzzle flash on -that- weapon? Why not just spawn a muzzle flash on the itself? Why fetch the character just to get the same weapon?
@emerickdorval3713
@emerickdorval3713 2 года назад
and if i don't have the Chicken muzzle flash and just the regular muzzle flash
@benjaminbittel8420
@benjaminbittel8420 5 лет назад
why does my muzzle flash spawn sideways yet my bullets don't
@johnholmstrom4212
@johnholmstrom4212 4 года назад
Virtus set the rotation to muzzle rotation. However, the muzzle never rotates (of course not, the player rotates, the muzzle never moves relative to the gun!). So in order to get the muzzle flash emitter to rotate, you'll need to connect the rotate part to your character's rotation.
@Hustlerdan_
@Hustlerdan_ 3 года назад
When I shoot, my muzzle flash spawns under the weapon. How can I fix It?
@ClutchtheGamer
@ClutchtheGamer 3 года назад
mine too did you find a fix?
@skreet7251
@skreet7251 2 года назад
@@ClutchtheGamer ur rotation is prob wrong make sure red is facing front of the gun
@Dahvidownz
@Dahvidownz 2 года назад
I can't reference to the equipped weapon.. can anyone help?
@jovaneybernard2206
@jovaneybernard2206 7 лет назад
can someone please help i can't get the flash to start at the muzzle, it starts at the magazine, i shifted it to the muzzle but it didn't work, ive been following the entire series and this is my only problem so far plz help
@beverleycorey4454
@beverleycorey4454 6 лет назад
Did you double check in the Skeletal Mesh of the AK that the Muzzle Socket is placed at the end of the muzzle?
@cettura
@cettura 4 года назад
you need the correct muzzle name of your weapon
@ashoksharma3596
@ashoksharma3596 7 лет назад
Pls make a tutorial on cover system in unreal engine 4
@j0bl1n84
@j0bl1n84 3 года назад
we need a go fund me for this guy! he needs new pc pls ppl
@mahdihasankhan4419
@mahdihasankhan4419 6 лет назад
muzzle flash wont fade away.....what should I do about that?
@alexjr977
@alexjr977 3 года назад
If you are not able to see muzzle effect in blade effects then restart engine then you definitely get them
@mahdihasankhan4419
@mahdihasankhan4419 3 года назад
@@alexjr977 I asked 2 years ago :D
@alexjr977
@alexjr977 3 года назад
@@mahdihasankhan4419 i know i randomly copy and paste this and what is going on your itch.io page ?
@SurajLad
@SurajLad 7 лет назад
Please Make An Tutorial On Damage Enemy, Enemy Health etc
@roylippold5538
@roylippold5538 7 лет назад
Thanks!bud I can not find this link character!?????
@Sweet._.Serenade
@Sweet._.Serenade 5 лет назад
Description
@jakubfrgal7112
@jakubfrgal7112 6 лет назад
There is no muzzle flash in Infinite Blade Effects now :(
@jakubfrgal7112
@jakubfrgal7112 6 лет назад
You should use P_spark burst
@JoeTheGinge863
@JoeTheGinge863 3 года назад
2:20 espenshaly ???
@radualex7960
@radualex7960 6 лет назад
no muzzle flash? particle exist
@youtuoz9184
@youtuoz9184 3 года назад
make a shooting sound tutorial
@uni_locust7738
@uni_locust7738 3 года назад
I am assuming you found the video but if you didn’t look through the playlist, I am pretty sure it was in the one where he made the gun auto
@montetherwaad6536
@montetherwaad6536 7 лет назад
pleas can you make swap between gun pleas pleas thank very mach for every thing :)
@SolitarySubstructure
@SolitarySubstructure 7 лет назад
Pistol_BS Switching rifles is easy input key->flip flop-"insert rifle here" just repeat the AK equip video
@derpywafflesstudio1778
@derpywafflesstudio1778 3 года назад
Anyone else’s thing clippy? Do you know the fix?
@kas-lw7xz
@kas-lw7xz 5 лет назад
Nooo, i have V4.21 :(
@ib.g.
@ib.g. 5 лет назад
Same, why wont it work with 4.21?
@uni_locust7738
@uni_locust7738 3 года назад
I know this is an old comment but it is because they removed the muzzle flash from the infinity blade fx pack.
@___UN
@___UN 7 лет назад
!
@Oledole1337
@Oledole1337 6 лет назад
make a fps game
@ethanbarclay3416
@ethanbarclay3416 6 лет назад
Why does it look like a fucking flamethrower.
@techshotyt
@techshotyt 7 лет назад
Please start a Tekken Series Please
@gamerlife5234
@gamerlife5234 4 года назад
this guy is great for learning but he dosnt explain shit right like ive watched with close details on every vid but dont no how u got the ammo counter in the corner as well as he didn't explain were those extra nodes came from for the empty mag
@kaylen407
@kaylen407 4 года назад
well just watch again cause he does explain it
@gamerlife5234
@gamerlife5234 4 года назад
Yes i seen that now have absolutely no idea how missed it
Далее
Unreal Third Person Shooter #19 - Muzzle Flash
19:12
ОСКАР И ДЖОНИ БРОСИЛИ НАС 😭
01:00
Why Unreal Engine 5.4 is a Game Changer
12:46
Просмотров 1,1 млн
Why Solo Developers Should Use Unreal
10:55
Просмотров 330 тыс.
How To Make A Game Alone
16:44
Просмотров 224 тыс.