constrain actor to another actor
bertkroma
Member, PRO Posts: 22
I've recently come over to GS from Construct2, and was wondering if there is a way to constrain one actor to a different actor?
Comments
One of the behaviours in GSC is the contain behaviour, that'll do what you want.
Edit: typing same time as @HappyKat78
----------------------------------------------------------------------------
iPad app: End of the Earth –•– http://davidgriffinapps.co.uk/
----------------------------------------------------------------------------
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
paddle1=actor to be constrained
controller1=actor to be constrained to
on the paddle1 I added Constrain Attribute and in the behavior I set the expression to self.position.x to controller1.position.x
also the controller1 didn't show up in the paddle1 expression editor so I typed it in manually, does it need to be added to some sort of global area?