Attribute increasing twice?
I don't think the context is that relevant, but I have an image of my code. Every time this "After x seconds" happens, instead of increasing by 1 like it's intended to, game.tableposition increases by two, and I believe it's causing issues. Nowhere else in my code is that attribute coded to change, other than when pressing enter, which SETS it to two, so I know that part isn't the problem.
Comments
Nothing in that screenshot shows an obvious problem (though I'd move the Destroy down to the bottom to be safe). So next investigation steps would be:
I only did this weird way of looping because timers don't work in loops, and loop(every) can't change it's set time.
Edit: I tried having it log rightb after changing game.tableposition, and it logs every number from 3 (the first one it changes to) to 7 (which it shouldn't end on)
Would definitely need to see the full project to troubleshoot further then.
Never underestimate the power of using the Log Debugging Statement behavior. Put one right after your increase action! It's super helpful in tracking this kind of thing down.
As @Armelline said, we'd need to see more, but my guess is that game.playing is being set unexpectedly. If it's a bug in our engine then it's being set to true twice and that's triggering (it shouldn't).
If it's a bug in your code then somewhere you may be setting game.playing = false and game.playing = true quickly.
Another possibility is that your table expression for the counter is dependent on a value that changes, causing the timer to re-evaluate unexpectedly (semantically I don't think it should, but I haven't looked at the Timer code in a while).
I actually figured out the solution, it was because of the ordering of things, so I put the timer in the rule instead of vice versa, and some other smal tweaks. Also, why is the Head Chief and Key Master commenting on my post wow. Also if that's your status why is your account newer than @Armelline's (who's account is older THAN ME, BY THE WAY)
I just happened to sign up pretty much the day GameSalad launched :D @adent42 is the guy in charge!
I was a founder of the company but wasn't active in the forums until a bit later (apparently after @Armelline joined). It could also be a fluke of account creation. As an admin I had to create an account on this forum software before everyone and then import everyone's accounts. So my date might be the day we switched forums, not my real account creation date (I'm too lazy to look).