touch

deej011deej011 Member Posts: 159

how do i touch an actor without touching whats behind that actor at the same time for example the background?

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Just FYI a simple google search would have lead you to this video.

  • deej011deej011 Member Posts: 159

    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

  • BasGoodboyBasGoodboy Member, PRO Posts: 310

    Thats what I want to know as well.

    Goodboi Gamestudios | Monster Jumper now on the App Store

  • aaronforsteraaronforster Member Posts: 28

    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.

  • deej011deej011 Member Posts: 159

    i just cant figure out a way it always activates the actor behind at the same time.

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    Here is one way to turn off the background when a top actor is pressed.

Sign In or Register to comment.