How can I drag and drop an actor only across the X axis?

SolarPepperStudiosSolarPepperStudios Member Posts: 754
edited August 2012 in Working with GS (Mac)
This is my first question/post on the forums so sorry if it is in the wrong place or something.

Best Answer

  • gyroscopegyroscope I am here.Posts: 6,598
    edited August 2012 Accepted Answer

    @kfeaval

    Hi and welcome to the Forums! No worries about the category, it's fine. :-)

    Put this into your draggable actor's rules:

    When Touch is pressed
    Constrain Attribute self.Position.X to game.Touches.Touch 1.X

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Answers

Sign In or Register to comment.