Smack Studio

Smack Studio

Theta_Zeta 9 Jul, 2024 @ 1:25pm
No way to compare variable to other variable?
I'm trying to create a boss character with health that varies depending on the number of lives in play (so it can't be cheesed; formula -- (Lives*50)+100). I can't find a way to check if the damage is equal to or greater than the health, however, as I can only compare it to a static number. Is there really no way to compare one variable to another in an 'if' statement in the editor? If not, does anyone know a good workaround?
Last edited by Theta_Zeta; 9 Jul, 2024 @ 3:35pm