video thumbnail 20:38
Unity Create a Game Series (E16. weapon effects)

2015-10-18

[public] 45.0K views, 745 likes, 2.00 dislikes audio only

In episode sixteen we spice things up with shell casings and muzzleflashes.

Download muzzleflash spritesheet: http://bit.ly/muzzleflashPNG

Source code:

https://github.com/SebLague/Create-a-Game-Source

Unity project:

https://github.com/SebLague/Create-a-Game-Project

Follow me on twitter @SebastianLague

Support my videos on Patreon: http://bit.ly/sebPatreon


Game development tutorials. Support my videos on Patreon
https://www.patreon.com/SebastianLague
fade out after a couple of seconds
/youtube/video/e1XO53GA7xM?t=98.019997
add the force to the side
/youtube/video/e1XO53GA7xM?t=148.69
add a bit of random rotation
/youtube/video/e1XO53GA7xM?t=193.75
spend a couple of minutes at creating some simple muzzle flash sprites
/youtube/video/e1XO53GA7xM?t=457.569
divide this up into four quadrants
/youtube/video/e1XO53GA7xM?t=479.55899
fill these all in with a white color
/youtube/video/e1XO53GA7xM?t=554.84998
add a little radial blur
/youtube/video/e1XO53GA7xM?t=589.70898
crop these into the four different sprites
/youtube/video/e1XO53GA7xM?t=699.47998
invoke the deactivate method
/youtube/video/e1XO53GA7xM?t=868.26001
get a random index for our flash sprites
/youtube/video/e1XO53GA7xM?t=923.66998
create a public muzzle flash variable
/youtube/video/e1XO53GA7xM?t=991.34998
add a light component light
/youtube/video/e1XO53GA7xM?t=1077.96
make it appear for a brief a period of time
/youtube/video/e1XO53GA7xM?t=1144.0699