Having an issues I think is caused by when touched is released.. Help please

ozboybrianozboybrian PRO Posts: 2,102
edited November -1 in Working with GS (Mac)
So i've got a set up so that when touched is released.
Game.Image_1 = true
Game.image_2 = false

But

There is another button behind it.

That has when Touched is released.
Is Game.image_1 = true.
Change image + Change attribute.

How do I stop the releasing and bad timing from making the images change? So that it only counts for when it's released that one time. I want to keep the buttons over lapping.

If there is any other way please let me know.
If you don't know any other way please let me know as well.

thanks guys!

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi, touch goes through all layers in GS unfortuntely, (you know, bit like the green goo from Alien ;-) but I think there's some sort of workaround though I can't find it unfortunately (from Joe of FiremapleGames); maybe someone else knows that.

    But I was wondering why you need this extra button on top; can't you just change the image of the bottom one? Or am I not understanding correctly?

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • ozboybrianozboybrian PRO Posts: 2,102
    It's a trick to reduce loading times.

    On my 9.2 version it worked fine. But I was using a larger Scene size.
    Might just stick with larger scene size.. I don't think i've done anything else differently.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    If you put your rules in the otherwise of a touch is pressed rule I think it will only trigger one time the touch is released Not sure though. I had a lot of trouble getting a stack of buttons to work right in one of my templates. The easiest way around I found was to have all of the lower buttons alpha drop below 1 or all the way to 0 and then used a touch is pressed and alpha =1 rule so that button wasn't active unless alpha was 1 but im not sure that will really help for what your doing
Sign In or Register to comment.