Beginner Scripting : GetAxis

 Another very useful bonus coding task for this week, this one is about GetAxis . GetAxis is a very common code , well for me it is anyway, i think all my player scripts i have made for both the 3D and 2d games have used it at some point. However despite using it i have never really understand its full function until now . As the video states GetAxis is simply whenever you press the key or joysticks' associated with that axis it returns a number between -1 and 1. A simple but at times very useful function when you are making your player controller for example.

screenshot from tutorial




Comments

Popular Posts