How do i make an actor move exactly with another actor?
talavital2010@gmail.com
Member Posts: 9
how do i achieve this? the both actors are overlapping and one is 120x120 and the other is 140x140 they are on top of each other... when they collide with a wall they move diffrently because of the difference in size..
i just want the 140x140 actor that is under the 120x120 actor to move with it.. to be pinned to the 120x120 actor
thanks
Comments
Only use a collide behavior on one of the actors, probably the 120x120 (but which ever works for your needs). Then constrain the 140x140 actors X and Y locations to the 120x120 actors X and Y values.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page