!! Dragging Question !!

JustsomedesignerJustsomedesigner Member Posts: 28
edited November -1 in Working with GS (Mac)
Hi im sorta new with gamesalad , although seemed to manage well in almost everything except this one problem. I need to know how to make an actor , NOT DRAGGABLE at a certain height ( Y ).
Could anyone help me please ??? This would help me finish the game :)

Comments

  • GamersRejoiceGamersRejoice Member Posts: 817
    Create a rule inside your actor that you move:

    If self.postion Y is < (your Y value)

    your drag rules go here...
  • JustsomedesignerJustsomedesigner Member Posts: 28
    Thanks , but i want the actor to be able to move higher than that but not able to drag or press higher than that . If i use the rule you gave me the actor gets stuck when it passes that height.
    If i use the rule in the press attribute i can still drag it towards there but not let go. I hope you know how to solve this.
  • JustsomedesignerJustsomedesigner Member Posts: 28
    Ah nevermind i fixed it !!
    What i did is put the rule INSIDE the Dragging/Release behavior like so...

    ---------------------------------------
    Dragging/Release:

    Attribute self.dragging is true

    --------------------------------------
    Rule:

    Attribute self.postion Y is < 260

    Constrain Attribute:

    Constrain Attribute self.Position.X ......etc

    Constrain Attribute:

    Constrain Attribute self.Position.Y.........etc

    otherwise
    ------------------------------------------
    otherwise..........etc etc
    ---------------------------
  • GamersRejoiceGamersRejoice Member Posts: 817
    Good work! I'm glad I could point you in the right direction.
  • JustsomedesignerJustsomedesigner Member Posts: 28
    Yeah thanks man you sure did !
Sign In or Register to comment.