Otherwise workaround
I'm trying to redo part of my app that don't work with this latest update, but I can't find a solution to replace otherwise in some cases.
At one part I have:
---------------
RULE: If touch is pressed
---------------
RULE If sound = 1
Change soundVolume to 0
OTHERWISE
Change soundVolume to 1
----------------
----------------
Seems like it could be fixed with 2 rules in place of otherwise:
---------------
RULE: If touch is pressed
---------------
RULE If sound = 1
Change soundVolume to 0
---------------
RULE If sound (does not equal) 1
Change soundVolume to 1
---------------
---------------
The ones and zeros are real numbers, not Boolean.
When I try this the button doesn't work at all. I'm guessing it goes through both rules and instantly changes it back. Is there another way to fix this? The only half fix I've found is to use timers so the attrib changes shortly after the button is pressed, but then I don't like the lag.
At one part I have:
---------------
RULE: If touch is pressed
---------------
RULE If sound = 1
Change soundVolume to 0
OTHERWISE
Change soundVolume to 1
----------------
----------------
Seems like it could be fixed with 2 rules in place of otherwise:
---------------
RULE: If touch is pressed
---------------
RULE If sound = 1
Change soundVolume to 0
---------------
RULE If sound (does not equal) 1
Change soundVolume to 1
---------------
---------------
The ones and zeros are real numbers, not Boolean.
When I try this the button doesn't work at all. I'm guessing it goes through both rules and instantly changes it back. Is there another way to fix this? The only half fix I've found is to use timers so the attrib changes shortly after the button is pressed, but then I don't like the lag.
Comments
At times sound volumes do not work in GS but then do on the device. Also, I've never tried to control sound that way. I've only done it how tsb does in his templates. It's more complicated than that. At least how I have copied the way he does.
So now it only loads the high res textures and crashes old devices. I need to update it, but in order to update it to fix the last bug I need to fix this bug. Check out what happened to sales this update:
http://www.appannie.com/epic-math-counting/ranking/history/#view=grossing-ranks
I need to get this fixed and I can't wait for them to release content updates. I would really appreciate any kind of help with this.