Join Dan Violet Sagmiller for an in-depth discussion in this video Prep for explosions, part of Unity 5: Build a Real-Time Strategy Game.
It's hard to tell that shooting is even going on.…And I'd really like to add some visual effects to…clean this up a bit.…I want to add explosions and blast damage.…I'm planning on using a free unity resource…in the next video and to prepare for it…we'll mark out the explosions,…how they'll occur and where.…So, to get started, I'm going to go into the…scripts folder,…I'm going to go into the battle folder,…and I'm going to be editing both of these AI's.…I'll start with 'Destroy On No Health'.…In 'Destroy On No Health', I'm going to add a…new game object to hold onto a prefab,…an explosion.…
So, public, game object,…explosion, prefab.…Immediately after we destroy the game object in…the update, I'm going to instantiate that explosion…prefab.…Game object dot instantiate, explosion, prefab,…and I'm going to set it off at this location.…So, transform dot position and then…the rotation will be quaternion dot identity.…
Next, I'll go to 'Attack in Range'.…Up at the top I'm going to add a new prefab,…this one will be for the impact visual.…
AuthorDan Violet Sagmiller
- Adding player positions and start info
- Loading prebuilt levels
- Adding camera moves
- Adding a unit
- Supporting navigation
- Adding unit owners and player objects
- Importing and setting up a HUD map
- Adding unit info and credits
- Creating HUD actions
- Building a command base
- Adding artificial intelligence
- Adding battle actions
Skill Level Intermediate
1. Initial Setup
2. Adding a Unit
3. Navigation Mesh
4. Unit Owner
5. HUD Map
6. Unit Info & Credits
7. HUD Actions
8. Command Base
9. Base AI
- 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.