Make actor stop at position when touched
Billyd1
Member Posts: 133
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?
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?