Constrain with drag
fullviewmedia
Member Posts: 92
Can someone tell me how to constrain the dragging of an actor within a 200x100px area.
Thanks
Thanks
Comments
if self.position.x > 200
constrain attribute self.position.x = 200
...for each of the 4 borders. if you need it to depend on the starting position you could use a starting point attribute, then use +/-50y or +/-100x to constrain dynamically.