Otherwise workaround

InLikeFlynnInLikeFlynn Member Posts: 171
edited November -1 in Working with GS (Mac)
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.

Comments

  • rlehmrlehm Member Posts: 320
    I don't think this is because of an update. Otherwise is not an issue with integer (at least not that I've heard).

    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.
  • InLikeFlynnInLikeFlynn Member Posts: 171
    I have other buttons that change non sound attribs that work in the same way. They were fine before the update. I think GS said it could crop up with Boolean or touch rules.
  • rlehmrlehm Member Posts: 320
    Sorry to hear that. I only have issue with Boolean.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Guys just hang tight. They have said a fix will be in the next release. I know it sucks waiting but your app performance will benefit from not removing all of your otherwises.
  • InLikeFlynnInLikeFlynn Member Posts: 171
    I would like to just wait for the update, but right now my app only works on 4th gens because it wasn't set up for resolution independence. It wasn't set up for that because of another bug in 0.9.4 that constantly unchecked RI.

    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.
  • InLikeFlynnInLikeFlynn Member Posts: 171
    tenrdrmer said:
    Guys just hang tight. They have said a fix will be in the next release. I know it sucks waiting but your app performance will benefit from not removing all of your otherwises.

    Asking people who pay time-based fees to be patient isn't exactly fair.
Sign In or Register to comment.