release outside - how do i prevent that?

xyloFUNxyloFUN Member Posts: 1,593
edited November -1 in Working with GS (Mac)
Hi,
i've made an instrument that consists of seven little play pads that, when touched will animate down kind of like a piano key :)
The issue is that if someone slides outside the actors dimensions, the up state image is not being called and so it looks like as if the key got stuck.

I'm sure there's an easy way to fix this but a google search didn't help me ....

Anyway, if anyone can solve that or has a workable solution, please share :)

Comments

  • xyloFUNxyloFUN Member Posts: 1,593
    Actually, taking a closer look ... i think that i might have to add an additional rule and use "touch outside"? Am i right?
  • magic101himagic101hi Member Posts: 713
    In the otherwise use the "change image" behavior to change it to the key uP image

    :D

    -Josh
  • xyloFUNxyloFUN Member Posts: 1,593
    Hi Josh,
    I did that but for some reason, it didn't have the effect I was hoping for?

    I have two rules per pad (pad = key to trigger)
    The first rule for when touch is pressed and plays a sound and changes the image

    The second rule is for when touch is released and changes the image back

    I've added to "otherwise" the change image attribute and set it to the original up state but as soon as i slide outside the boundaries, the keys does not go back up.

    hmmmmm ....
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Try when touch is released.
  • xyloFUNxyloFUN Member Posts: 1,593
    OK, the way i got it working is that I've added a third rule and instead of "released", made it "outside"!

    Just augmenting the rule resulted in a stuck key after the first touch.

    No big deal, just copy the second rule (release) once and change to "outside". That does it :)
Sign In or Register to comment.