001 Action / RPG Maker - Engine001



Interface

From Wiki001

Jump to: navigation, search

Interfaces are everything that is shown on the screen related to the player. They're used to orient the player about whatever he/she should be aware of, like a health bar, the speedometer of the car you're driving, the weapon you're using, etc.

Contents

Tools

Specific Notes

Since interfaces share some features from maps, the following outlines specifics when they are used in interfaces instead.

Dynamic Object

Dynamic objects are used to give the custom characteristic to the HUD. Also, they're often used along with fields to orient the player of what the field is determining. For example, a simple rotating dial doesn't mean anything to the player, but if a speedometer picture is added along with, then the player will see what it means.

Timer/Spawn

Timers, on interfaces, are used mostly to add and remove the dynamic objects and fields on the screen. For example, if you're not in a car, there's no reason to keep seeing a gas meter all the time, so an event is added on the HUD timer to check if you're inside a car. If you are, show the gas meter, if you're not, hide it.

Also, you can use HUD timers as global timers. Since the interface is activated during the whole game (if not deactivated), these timers will keep running everywhere you go, anytime of the game. So for example, if you wanted to add a hunger bar, you could use a variable (hunger) being subtracted through the timer and also adding the hunger effects via the same timer.

IMPORTANT: Timers can be dangerous. Since they're being run all the time, they might lag the game if they have a too little interval along with a huge script. So be careful when using them.

Scripting

Events

Properties

Turned On
Non-zero if the interface is activated and displaying.

Simple HUD Examples

There are many different possibilities with HUD.

Health Bar

I will show you how to make a simple health bar.

  • 1. First go to your HUD, click on the "Field" Button.
  • 2. click on the screen where you want your Health bar to be.
  • 3. When you click, there should be a popup.
  • 4. Check off the graph button on the right side.
  • 5. Click "Bar Graph".
  • 6. Set the "Initial value/text" to 100
  • 7. Set the "Initial max value" to 100
  • 8. Under Features, set the hight and width of your bar until your satisfied.
  • 9. For the "Retrieve Value" put Char("main").HP
  • 10. For the "Retrieve max value" put Char("main").MaxHP
  • 11. Now look in the visuals box, change the color and opacity to whatever you want

The same concept for a mana bar, but instead put initial value to:

  • Char("main").CurrentStat("MP")

max value to:

  • Char("main").Stat("MP")
Personal tools