Join Michael House for an in-depth discussion in this video Combining the basics, part of Advanced Unity: 3D Game Programming.
…In this video we're going to review what we've learned so far.…These topics include Delta Time, Transform Operations and Mouse Input.…We'll combine what we've learned to create a collection of…scripts that give us the beginnings of a simple game.…In this game, we're going to protect our home base from invading spheres.…Let's take a look at the code.…Each has an AttackCenter script attached to it.…Here I am using a empty attacker's game object to group our attackers.…You can see that it has the AttackCenter script,…and a DestroyOnClick script, with the left mouse button set.…
The AttackCenter script.…Is going to randomize the speed slightly at the beginning,…so that we have different speeds for each of our spheres.…And then the Update method is just going to MoveTowardsTarget and Pulse.…The TargetPosition we're moving towards is the center of the world, where…our home base is, the current position is where we are now.…We're going to check the distance to see if it's greater than 1.…If it's not, that means we made it, and we…
NOTE: This course requires Unity 4.5.5. The newer versions of Unity have done away with the GUI system used in this course, so the interfaces included for many of the scenes will not work with 4.6 and higher. You can download Unity 4.5.5 at http://unity3d.com/get-unity/download/archive.
- Enabling/disabling with scripts
- Translating, rotating, and scaling objects with scripts
- Working with mouse and keyboard input
- Creating custom GUI controls like progress bars
- Loading assets with scripts
- Saving games
- Creating prefabs dynamically
- Making remote procedure calls
- Synchronizing object transforms
- Finding slow code
- Optimizing data access
- Extending the editor
Skill Level Advanced
Q: In the Chapter 3 file EntityLoader.cs, I get an error: DirectoryNotFoundException: Directory 'Assets\' not found. Removing the backslash after 'Assets' fixes it, but then I run into a different error. How do I fix this?
Q: What version of Unity does this course cover?
A: This course requires Unity 4.5.5. The newer versions of Unity have done away with the GUI system used in this course, so the interfaces included for many of the scenes will not work with 4.6 and higher. You can download Unity 4.5.5 at http://unity3d.com/get-unity/download/archive.
Q: The game object in the first chapter's Mouse Input Raycasting sample doesn't appear to follow the mouse. What's wrong?
A: Please enable the Box Collider component (by activating the checkbox next to the component name) on the game object. This is not explicitly mentioned in the video, but it will ensure the raycasts collide with the game object.
Animating Characters with Mecanim in Unity 3Dwith Sue Blackman5h 28m Intermediate
Unity 3D: 3.5 Essential Trainingwith Sue Blackman10h 52m Beginner
Animating for Unity 3D in 3ds Maxwith Adam Crespi1h 19m Intermediate
1. Basic Scripting
2. Using the Debugger
An advanced prefab system6m 12s
4. Advanced Scripting
5. Dynamic Terrain
6. Creating Custom GUI Controls
9. Extending the Editor
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.