video thumbnail 12:41
Unity Create a Game Series (E17. weapon variation)

2015-10-24

[public] 28.8K views, 494 likes, dislikes audio only

In episode 17 we add different fire modes to the weapon class, as well as the ability to shoot multiple projectiles at a time. We also create a simple trail effect.

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
choose between three fire modes for our weapons
/youtube/video/yfSN6W98r4I?t=8.8000002
set up some variables for the burst fire
/youtube/video/yfSN6W98r4I?t=181.269
set shots remaining in burst equal to the burst
/youtube/video/yfSN6W98r4I?t=216.459
add in the single fire logic
/youtube/video/yfSN6W98r4I?t=268.17999
add in the ability to fire
/youtube/video/yfSN6W98r4I?t=342.31
add in a trail renderer component
/youtube/video/yfSN6W98r4I?t=490.12
fiddle around with these different colors
/youtube/video/yfSN6W98r4I?t=551.76898
set the color of the entire of the entire effect
/youtube/video/yfSN6W98r4I?t=587.44
apply the change to this prefab
/youtube/video/yfSN6W98r4I?t=657.66998
set the trail color to a sort of lighter yellow
/youtube/video/yfSN6W98r4I?t=695.31
make the box colliders really tall
/youtube/video/yfSN6W98r4I?t=732.76001