Join Sue Blackman for an in-depth discussion in this video Refining the projectile, part of Unity 3D: 3.5 Essential Training.
We made an excellent start on our projectile in the last video, but now we need…to solve the problem of too many projectiles.…Open the Projectile script and we're going to add a new variable.…Underneath projectile, we're going to add var fireRate, of type float, and this one…we are going to go ahead initialize it to 0.5, and we'll add our semicolon.…
This will be how long before the next projectile can be fired.…Next we're going to need an internal variable, and we're going to name this guy…nextFire to keep track of when the next projectile can be fired, and that's…where Time.time comes in.…So our next variable is var nextFire.…It's also of type float, and this one we're not going to initialize. And I said…it was going to be internal, so let me go back and add that.…
Remember, internal means that it's not going to show up in the Inspector.…Next, we'll need to add the extra condition to our if clause.…This is the part that prevents all those extra projectiles. And that goes into…our if clause, and we're going to use our && for "and." And the second condition…
- Understanding game and level design theory
- Organizing your project in Unity
- Creating and transforming objects
- Setting up the geometry
- Painting in terrain, textures, and trees
- Adjusting the render settings
- Importing terrains
- Creating a first-person controller
- Creating materials and shaders
- Lighting the game
- Working with cameras and multiple views
- Animating characters and assets
- Creating fire with particle systems
- Managing the GUI (graphical user interface)
Skill Level Beginner
1. Exploring Unity 3D
2. Exploring the Terrain Editor
3. Creating the Environment
Publishing project settings3m 37s
4. Introducing Unity Scripting
5. In-Game Scripting
6. Working with GameObjects and Components
7. Exploring Prefabs
8. Using Imported Assets
9. Understanding Lighting
10. Keyframing Animation
11. Animating Skinned Meshes and Controlling Characters
12. Working with Cameras and Layers
13. Creating Game GUIs
14. Extra Techniques and Features
What's next1m 13s
- 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.