video thumbnail 15:35
Introduction to Game Development (E23: stealth game 1/3)

2017-04-14

[public] 94.8K views, 2.64K likes, 19.0 dislikes audio only

In this episode we begin our small stealth game project by creating a "guard" that can patrol a path.

Note: I made a small error in my "TurnToFace" implementation, which means the guard is unable to turn anticlockwise. The reason is that DeltaAngle() can return negative values, so I should actually be comparing the absolute value of the delta angle. I will fix this at the start of the next episode. Sorry!

Project files:

https://github.com/SebLague/Intro-to-Gamedev

If you'd like to support these videos, you can make a recurring monthly donation (cancellable at any time) through Patreon: http://bit.ly/sebPatreon

Or a once-off donation through PayPal:

http://bit.ly/SupportGamedevTutorials


create an empty game object
/youtube/video/jUdx_Nj4Xk0?t=62.529999
loop through all of the children in the path holder
/youtube/video/jUdx_Nj4Xk0?t=137.02
loop through each index of our waypoints array
/youtube/video/jUdx_Nj4Xk0?t=311.60999
move the guard towards the target waypoint with transform position
/youtube/video/jUdx_Nj4Xk0?t=445.10999
moving between each waypoint
/youtube/video/jUdx_Nj4Xk0?t=558.23999
create a new light object
/youtube/video/jUdx_Nj4Xk0?t=619.22998
rotate to face the next waypoint
/youtube/video/jUdx_Nj4Xk0?t=659.13
rotate towards this target angle at a time
/youtube/video/jUdx_Nj4Xk0?t=742.17999
Blender to Unity Character Creation by Sebastian Lague
/youtube/video/ocLZNRasU64
Create a Game (Unity 5) by Sebastian Lague
/youtube/video/SviIeTt2_Lc
Sebastian Lague Hello, on this channel I explore how to create stuff out of code. I hope you find some of it interesting!
/youtube/channel/UCmtyQOKKmrMVaKuRXz02jbQ
Support these videos on Patreon patreon.com
https://www.patreon.com/SebastianLague