Platform Builder Forums

Help and Support => Working with Platform Builder => Topic started by: Antikore on July 30, 2019, 11:49:35 AM

Title: Problem with commands
Post by: Antikore on July 30, 2019, 11:49:35 AM
Code: [Select]
if game var power != 1
{
     health - 1
}

This is not working. This should kill you if the power is not the correct. But doesn't kill you, doesn't matter if you have power 1 or not.
I've tried removing the ! from the =, but it doesn't work.

EDIT: If I change my health type to limited, it works. So, this might be a bug?
Title: Re: Problem with commands
Post by: TingThing on July 30, 2019, 04:21:29 PM
If you use no health or unlimited health, then health commands will be ignored.
Now that you mention it, I should make a quick fix for this so that you can still kill the character when using no health or unlimited health.
Title: Re: Problem with commands
Post by: Antikore on July 30, 2019, 04:23:47 PM
Yes, please. Thank you :D