Make actor stop at position when touched

Billyd1Billyd1 Member Posts: 133
edited November -1 in Working with GS (Mac)
Ok so this is what I have so far:

RULE:

When Actor recives event > 'touch is pressed'

Constrain attribute: 'self.position.y' to 'game.touches.touch1.y'

So I can move the image up and down ok, but I want it to stop when it gets to a certain position. For example:

when 'self.position.y' = 500 I want the image not to be able to go beyond that.

Does anyone have a example?
Sign In or Register to comment.