How to give priority to overlapping actor?

xyloFUNxyloFUN Member Posts: 1,593
edited November -1 in Working with GS (Mac)
Yikes, googling for a solution shows posts I made to this forum :( lol

ok, here is my issue:

I have three actors in my game
actor 1 and 3 are side by side (like piano keys)
actor 2 overlaps actors 1 & 3

each actor has a sound assigned

clicking on actor 2 also triggers the other actors sounds.

how do i disable that and give priority to the top actor?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    You still need help with this? Let me know
  • xyloFUNxyloFUN Member Posts: 1,593
    John,
    You always have more elegant solutions than I have!

    So, how would a genius do it?

    I was re rendering the clarinet all afternoon because I no longer like the old one so sometime tonight, I'd like to get crackin' on the piano.
    As you know, the black keys overlay some of the white ones and thus also trigger the sound which is not good.

    If you have an idea on how to prevent this, shoot me a message :)

    Thanks .... And if you ever need any game ideas ... Let me know! Lately, while I'm waiting for GS or a render I get all those ideas for great games but I don't want to make games because I don't play any because I prefer the piano instead.

    Ciao :)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    For the white keys, instead of having when touch is pressed play sound, try making a new invisible actor and place them on the white key up to where the black key starts, then have the black keys sound behavior in the blac keys. That way theres no overlapping of the sound behaviors. Because if someones touching abouve where the black key starts, they probably arent trying to press the white key anyway. Because the white key is big at the bottom but skinny where the black key is right? Let me know if this works for you.
  • xyloFUNxyloFUN Member Posts: 1,593
    Great minds think alike! :)

    Thanks, that is workable and reminds me of my first flash apps two years ago.

    I hope we can chat later ... Things are going well and I'm almost done with the clarinet which I rerendered to get a better size for the iPad.

    Ciao :)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    :) Let me know how it works! Just shot you a email as well
  • xyloFUNxyloFUN Member Posts: 1,593
    It words ... it's easy but the surprise element is that I am introducing a new keyboard layout which is better than the pianos usually used for software interfaces!
    I think i can upload during the weekend and then I can show it off?

    Next week is going to be really really busy because i am rolling out a handful of my windows apps at the same time. You might as well hit hard ;)

    Now i need to find someone who can tell me what to do with the apple tax pdf!

    ciao for now :)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    glad it works!
Sign In or Register to comment.