Platform Builder Forums

Help and Support => Working with Platform Builder => Topic started by: Wizard Indie Games on July 08, 2020, 07:38:40 PM

Title: HP Check
Post by: Wizard Indie Games on July 08, 2020, 07:38:40 PM
Is there any way to use a Command to check the HP value of an enemy/block etc.?

Also, I notice the enemies can ride on platformers moving horizontally but they fall through vertically moving platforms. I tried to fix it by reducing their Y position in their loop (to counter the gravity) but the result looked really bad.

Do enemies have a local gravity value that can be changed?

I notice some of the default enemies can fly but the Custom enemies seem to have very limited actions.
Title: Re: HP Check
Post by: TingThing on July 12, 2020, 01:19:59 PM
There currently are not many commands which check the stats of enemies, items, etc. You could throw that in the pot of suggestions for me to sort through. If you only want to check the block HP for a single block, then you could do that work with your own custom variables. But if you want to do this for multiple blocks would you need to have separate variables for each block and that could get tedious.


Honestly, I wouldn't recommend trying to make enemies work on moving platforms because it will likely produce undesirable results. But if you really wanted to experiment some more, you can make flying custom enemies by clicking the button in the top-left corner which says "type = land."
Title: Re: HP Check
Post by: Wizard Indie Games on July 12, 2020, 04:33:01 PM
Thanks. I tried your variable tip. I managed to get a helicopter to take damage then take more and go on fire.