Book Image

Mastering Unity 4 Scripting [Video]

By : Kyle D'Aoust
Book Image

Mastering Unity 4 Scripting [Video]

By: Kyle D'Aoust

Overview of this book

<p>Mastering Unity 4 Scripting will show you the ropes for all the tools you'll need to make just about any game. Whether it's 2D or 3D, a first-person shooter or puzzle game, everything you need to know, will be covered in this course.</p> <p>Mastering Unity 4 Scripting will teach you everything you need to know in order to make a wide variety of games. This course covers valuable topics such as audio, animation, saving and loading data, as well as scripting behavioral artificial intelligence - all of which will be discussed in a systematic and simple series of videos.</p> <p>This course begins by demonstrating how to program audio, then delves into AI scripting, and then wraps up with how to save and load data. Beginning with handling audio and sound effects, you then get into handling parallax backgrounds. After that, you will learn how to create an AI and character controller for a generic enemy. The course then wraps up by learning how to change levels and save/load data.</p> <p>Mastering Unity 4 Scripting is a great course to learn all you need to get started with making your own games.</p> <h1>Style and Approach</h1> <p>Packt video courses are designed to cover the breadth of the topic in short, hands-on, task-based videos. Each course is divided into short manageable sections, so you can watch the whole thing or jump to the bit you need. The focus is on practical instructions and screencasts showing you how to get the job done.</p> <p>Anyone with a basic knowledge of programming and/or experience with Unity programming will find this course handy. Beginning with handling audio and sound effects, you will then get into handling parallax backgrounds. After that, you will learn how to create an AI and character controller for a generic enemy. The course then wraps up by teaching you how to change levels and save/load data - everything you need to get started with making your own games.</p>
Table of Contents (8 chapters)
Chapter 4
Making 3D Parallax Backgrounds
Content Locked
Section 3
Implement Character Controls Part 2
Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} Jumping in a 3D parallax is essentially the same as in a non parallax - Copy the movement script from the previous video into this script - Add in the new variables, functions, and Input for the Jump mechanic to it - Apply it to your character controller and be sure to keep jump speed lower than gravity, else the character would never fall back down - Test it.