Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | swordofbling |
I don’t know how to explain it but I have a variable called powerup that will change and whenever I get this powerup I want to set that variable to true. E.g. I have a variable called shield_powerup = false and I have a variable powerup = “shield” and I use this get(str2var(str(powerup) + "_powerup")) = true
to get the variable shield_powerup but it says I can’t assign to an expression.
If someone could help me I would greatly appreciate it.