Download

Variable is not retained when you change the level!

Hi guys, got a simple cuestion. I create a “bool” variable for the test, which is printed every second and shows its status. “Var is false by default”. Before changing the level, I change the value to “True” but every second I’m still getting the value to False. :C

current Coins >= max coins ( bigger or equal to)
how the amount of the current coins can be bigger than the max coins ?
it will return True only if the current coin is equal or is bigger that the max coins value.
or you define that you have found all the coins in your level, and this way you complete the level and return on the levelSelect map, if Cur coins == max coins
Another big error here is that your Array variable has been set as boolean variable, instead of integer or an enum.