In this video Jesse Freeman teaches you how to add a monster sprite to the newly create battle window in the RPG game. The monster game object will represent a default location to attach any monster artwork you’ll have in your RPG as the player triggers the battle window to fight. You’ll also create a stats display for the monster at the top of the battle window.
- [Voiceover] Now that we have our battle window,…it's time for us to add our monster to it.…Let's select the BattleWindow game object,…right-click, and create a new Image.…Let's look for the slime image.…Here we'll set it to its native size, and we're gonna…move it down and position its Y value at negative eight.…Let's name it Monster.…Even though we have the slime…inside of our Monster game object,…we're gonna keep this generic…because as you continue to build your own game out,…you can simply swap out this image for any of the monsters…you want your player to fight.…
Now let's go ahead and add a new image…that we'll call MonsterStats.…Here we're gonna go into the Anchor Points,…and we're gonna realign it to the top…and change the Position Y to zero.…We'll also change the Width to 36…and the Height to eight.…Next let's go ahead and change the source image…to Palette Color Four, and now we'll have an area…at the top of our battle window…where we can display the name and health of our monster.…
Inside of our Assets - AdvancedUI - Prefab folder,…
- 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?
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.