That’s probably the case, and adding a “<= 0” might fix that, but I expect that once that check is cleared, then it’ll run into a runtime error the very next frame.
What kind of error? Did you include the quotation marks there too, because that’d lead to an error too.
The easiest way to get help is to provide us with a small sample project that demonstrates your issue. Based on the code you’ve shared, we can only guess. It might seem like plenty, but we don’t know what the error is, we don’t know what problems you are facing, we don’t know anything for certain when it comes to what you’ve shared.
Help us help you. Create a small project that demonstrates your issue so that we can help you debug it.
That’s probably the case, and adding a “<= 0” might fix that, but I expect that once that check is cleared, then it’ll run into a runtime error the very next frame.
What kind of error? Did you include the quotation marks there too, because that’d lead to an error too.
The easiest way to get help is to provide us with a small sample project that demonstrates your issue. Based on the code you’ve shared, we can only guess. It might seem like plenty, but we don’t know what the error is, we don’t know what problems you are facing, we don’t know anything for certain when it comes to what you’ve shared.
Help us help you. Create a small project that demonstrates your issue so that we can help you debug it.