GameSalad resetting attribute randomly?
Hey guys,
I've been having this problem for a while now, and I just can't seem to fix it. I'll try to explain quickly:
I have actors with health and max_health attributes. Tapping these actors will load another scene, where you can upgrade the actor's max_health. The actor itself will set its health to its new max_health automatically when upgraded (via global attribute). All that works out fine. But I found, that if you don't upgrade the actor, but just switch scene back and forth, it will revert to its original health (the one I entered inside the actor manually). Max_health keeps the upgraded value, though.
I know it's hard to follow without any actual 'code' to work with, but does anybody have an idea what could be going wrong? Anybody experience that yet?
Thanks a million,
Steve
I've been having this problem for a while now, and I just can't seem to fix it. I'll try to explain quickly:
I have actors with health and max_health attributes. Tapping these actors will load another scene, where you can upgrade the actor's max_health. The actor itself will set its health to its new max_health automatically when upgraded (via global attribute). All that works out fine. But I found, that if you don't upgrade the actor, but just switch scene back and forth, it will revert to its original health (the one I entered inside the actor manually). Max_health keeps the upgraded value, though.
I know it's hard to follow without any actual 'code' to work with, but does anybody have an idea what could be going wrong? Anybody experience that yet?
Thanks a million,
Steve