E
Ellys
Guest
I want to take away 3 from an already set variable in a switch statement.
switch (oCharacter.HPdiff){
case 0:
oCharacter.Gold = -3
break;
This essentially sets the characters gold to -3 instead of removing -3. Game maker doesn't like it if I set it out without the =
oCharacter.Gold -3
Any suggestions (yes i'm new to code)
Thanks in advance.
switch (oCharacter.HPdiff){
case 0:
oCharacter.Gold = -3
break;
This essentially sets the characters gold to -3 instead of removing -3. Game maker doesn't like it if I set it out without the =
oCharacter.Gold -3
Any suggestions (yes i'm new to code)
Thanks in advance.