how to disable Touch attribute on a certain part of the screen?

AdamgoproAdamgopro Member Posts: 310
edited February 2014 in Working with GS (Mac)
so i have a pause button and an actor follows my finger in the Y direction but when i press pause it moves the actor to that position how do i disable touch area on the pause button so my actor won't jump to that position?

And is this an iOS game or Mac or some other platform?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    What rule condition are you using to constrain the actor to the mouse position?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • AdamgoproAdamgopro Member Posts: 310
    edited February 2014
    Constrain self position y to devices/touch y

    And

    And the actor is constrained to the x position

    @tatiang
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited February 2014
    Actually, you still didn't answer my question. What condition? Here's what I suggest: use When Touch is Inside for your rule condition for your actor that follows the mouse/touch position.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • AdamgoproAdamgopro Member Posts: 310
    tried that doesn't work, let me try simplify would it be possible to constrain the touch position to a certain Width + height ?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited February 2014
    tried that doesn't work
    It of course does work, which is why I suggested it. But obviously you have your rules or your scene set up a certain way that doesn't allow it to function properly. It may be that your pause button has the same x position as your constrained actor but I can't tell that from what you've written.

    Can you send me a link to download your project file? I've asked you the same question twice and you've ignored it so I'm finding it hard to help you. I'm sure if I could see what you're seeing I could figure out why it doesn't work in your project.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.