touch
deej011
Member Posts: 159
how do i touch an actor without touching whats behind that actor at the same time for example the background?
Comments
Just FYI a simple google search would have lead you to this video.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
hi thanks for the link but its not really what im looking for. when i touch the actor its position changes but the background also has a touched feature and when i touch the top actor it also touches the background actor and the technique in the video doesnt work for what i need
Thats what I want to know as well.
Goodboi Gamestudios | Monster Jumper now on the App Store
I've had that exact problem too. The way I overcame it was to set up a game attribute for the purposes of this example I'll call it "Layer", whereby:
If the "top layer actor" is touched" change the "Layer" attribute to 1 or else to 0 . Then on the actor on the bottom layer put in a clause on your touch condition,
If "Layer" = 0 then (whatever rules you have on the actor)......
I hope this makes sense; It's not ideal especially if there are lots of actors in the scene and if there is an easier way I'd like to know myself.
i just cant figure out a way it always activates the actor behind at the same time.
Here is one way to turn off the background when a top actor is pressed.