I am working on setting up different scenes but I’ve noticed a minor but annoying problem of tap or touch events propagating between scenes. So if there is a two buttons and they are in the same position on two different scenes pressing one can have me press the second on on the scene I just moved to. Right now I don’t have any effects between scenes. Is this normal? Is there some way to prevent this?
-
Be sure you’re adding your buttons to the scene group or you’ll have this problem because the new scene simply creates content over your old UNMANAGED content.
-
Be sure to return true from your touch and tap listeners or the touches will propagate to objects below the buttons.
I’ve done both, this is why I’ve found this issue so weird. Each listener returns true, and I’ve inserted them into my scene.
Can you demonstrate this with a very basic example, zip it up, and share a link to the zip file here?
I found the issue! One of my buttons was a touch listener and thats why it could propagate between scenes because my finger didn’t have to come off the screen and could count as another tap on a scene that had just been made.
-
Be sure you’re adding your buttons to the scene group or you’ll have this problem because the new scene simply creates content over your old UNMANAGED content.
-
Be sure to return true from your touch and tap listeners or the touches will propagate to objects below the buttons.
I’ve done both, this is why I’ve found this issue so weird. Each listener returns true, and I’ve inserted them into my scene.
Can you demonstrate this with a very basic example, zip it up, and share a link to the zip file here?
I found the issue! One of my buttons was a touch listener and thats why it could propagate between scenes because my finger didn’t have to come off the screen and could count as another tap on a scene that had just been made.