toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
How can I drag and drop an actor only across the X axis?
SolarPepperStudios
Member
Posts:
754
August 2012
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
gyroscope
I am here.
Posts:
6,598
August 2012
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
Answers
SolarPepperStudios
Member
Posts:
754
August 2012
Thank you so much!
Sign In
or
Register
to comment.
Answers