In this video, Jesse Freeman shows you how to create the foundation for the battle window. You’ll begin by taking each of the sprites that make up the background landscape layers and lay them out inside of a Unity 5 UI panel. You’ll position them by taking advantage of Unity 5’s new RectTransform and its anchor points.
- [Voiceover] Now we're ready to start building up…the foundation for our battle window.…Let's go into the canvas game object and our game window.…We'll right-click on our game window game object…and go to UI and create a new panel.…Let's call this panel battle window.…The first thing we're gonna wanna do…is change the default image to our battle window border.…We'll also wanna set the alpha to 100 percent.…By default, panels automatically stretch…vertically and horizontally.…
So let's go in and while holding down option on a Mac…or alt on Windows, we'll reset the values and center it.…This will change the the rect transform…to allow us to define an explicit width and height.…Let's go ahead and change the wide position to 20…to move our window up, and we're gonna change…the width to 98 and the height to 82.…Now let's add an image into our battle window.…We'll right-click on it, go to the UI menu,…and select image.…
We'll change the source image,…and let's set it up to be the background sky.…You can do this by typing out sky in the search box…
- Preparing the user interface
- Creating game and message windows
- Building a battle window
- Adding a monster and action buttons
- Creating an actor class
- Adding player and monster attack actions
- Triggering battles from the map
- Ending a battle
- Cleaning up the battle and attack systems
- Rewarding the player
Skill Level Intermediate
1. Preparing the UI
2. Message Window
3. The Battle Window
4. Actor Classes
5. Battle Actions
6. Cleaning Up Combat
- 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.