Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[SOLVED] Place bar above event?

A topic by rhaw757 created 33 days ago Views: 89 Replies: 7
Viewing posts 1 to 3

This looks great! Does it have the ability to keep the bar above an event in the case that I want HP Bars above enemies on the map? So if I have a moving event on my map, is it possible to make the bar stay above the enemy as they move?

Developer

You want to create a real time battle on map system, correct? If so, this plugin might not be the best fit yet because for a battle system like that, it requires:

- Auto delete HUD bar when the enemy is defeated.

- Each enemy needs a different HP variable. If you have 20 enemies, that is 20 variables, which is exhausting to create manually. If all enemies share the same variable then if one dies, others die as well.

I can implement a feature for the HUD bar to stick to an event or the player, but it doesn't solve the other issues I mentioned earlier. I'm also creating a real time combat system so I'm sharing some of my experience here.

I'm working on a specific plugin to create HP bar on enemies and you don't even need to create variables, it's much more optimized for real time combat, stay tuned!

(1 edit)

Yes, sort of but a very simple one! So essentially, the player walks into a boss map. The player’s followers (3 max) will move to their spots and fire projectiles at the boss on the map slowly draining the HP of the boss and the boss will fire back at the player’s followers hurting them as well. During this time, the player is solving a puzzle on the map to break the shield of the boss so more damage can be done by the player’s followers. Neither the boss nor the followers move once they’re in position. 

The problem I had with Visustella’s Variable Gauge is that I couldn’t get it to stay above an event. It was locked to a screen position rather than a map position so it would scroll with screen when the player moved around on the map.

Developer

Oh, that sounds more doable cuz it's just one boss. I'll implement the feature for the HUD to stick to events and the player in the next update.

Developer (1 edit)

You mean it should move like this right?

Yeah sort of like that. I only need HP Bars for the boss and the player's followers. They all have predetermined spots they will be as well and they will just stand there firing projectiles at each other while the player wanders the map and solves the puzzles. I want the HP of the followers to be visible as well so the player knows how much health their followers have left. Here is an image of a test setup:


The elephant is the boss. The dog, kitsune, and woman are the player's followers. They move to the spots they're in now and fire projectiles at the boss while the boss fires their own projectiles at the followers. They don't move from there, only the player will. My current setup is the HP bar above the woman is just an event placed a tile above her that changes based on that actor's HP.  It works but is a bit messy to track the HP properly. I would love something more streamlined. I tried to use Visustella's Variable Gauges, but if I put it in a position, it moves with the screen so won't stay above an event.

Developer (1 edit)

Wait. I need to tell you that this plugin uses variables, not the actual health of followers or player that you set up in the database. It's not really the purpose of the plugin. I've updated the feature to follow events and players in version 1.1.3, but if you want to treat a variable as the HP value in the database, you'd need to assign that variable as $gameParty.leader().hp (the script section in Control Variable command)

If you need more help on this, feel free to message me via my Discord. Working in real-time is much faster: SangHendrix#3505

That’s awesome, thank you! Yeah, I have been just assign the follower’s HP to a variable and update it and it should work I believe! Thanks for all of your help!