User Tools

Site Tools


developer_center:developer_editor:hpbar

BASIC UI - HP BAR, MP BAR

Introduction: In the advanced dev mode, you can create a beautiful game. However, you should create a beautiful UI by trigger. Do you know how to make it? If you don’t know, let’s read this post.

Target:

  • you know how to make basic UI
  • you know use string

Full trigger:

I. UI Decorate 1. Change from Hunger PT to Stamina

2. Create a new UI

3. Hide default default HP, MP bar

4. Let’s design the UI,… This is an example:

II. Trigger

1. Start creating a new trigger

2. Add 5 events “When the player’s MAX HP attribute changes”, “When the player’s CURRENT HP attribute changes”, “When the player’s CURRENT MP attribute changes”, “When the player’s MAX HP attribute changes”, “When player enter the game”

3. Add actions – Set text content to set HP text Step 1: add action and select units

Step 2: You know, the UI HP Text has a format: HP: + Current HP + / + Max HP. In the MWC, if you want to do it, you must use “String Concatenation”. Look at this picture.

Step 2.1: Choose convert value to string, note: value is current HP or max HP, string is text

Step 3: If you want to rounding player’s current HP or max HP

II. Stamina 1. You completed the Text of HP Bar so you can copy and edit to stamina

developer_center/developer_editor/hpbar.txt · Last modified: 2024/02/07 09:26 by don