Constrain Attributes Stop Working
So I have this weird bug popping up and I wonder if this has happened to anyone else:
I have several actors with constrain behaviors tied to table values such as weapon select buttons in the HUD. Simply firing any selected gun and quitting out and going back into the same scene can cause all constrain behaviors in multiple actors to stop working. Basically all these constrains seem to detach themselves from the table value they are tied to. I have confirmed through testing that the table values themselves do indeed still change. The temporary work around i have done is just substitute all constrains with a change attribute that is wrapped around a timer set to every 0 seconds and this seems to work fine. I do want to avoid using timers so if i can just figure out the cause for this weird bug that would be great.
Is there any common causes for this?
Answers
@Goodnight Games it may be possible that the constrain breaks because it references the table before valid row/col attributes are set. These attributes are probably still 0 as you come into the scene, referencing nonexistent table cell at row 0 and col 0.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
We wound up having to use global attributes.The tables were firing fine with the several values starting at zero to begin with from early development stages, so I don't think that was the problem. I couldn't seem to find the problem so i just replaced the tables with game attributes. The only thing i could think of was the last update causing it, since that is when it started. I have older builds on an iphone and that does not have the bug in it.