Constrain actor to make it move with you?
http_gamesalad
Member Posts: 1,340
Can someone please tell me how I can make one actor follow another? I remember I did this once but I forgot the coding. All I remember is making 2 real attributes calling them real x & real y & the then constrain something.. that's the part I forgot. Thanks
Comments
Is your actor rotating ?
Are the two actors in the same position ?
Create 2 real attributes. Name them actors and actorY. Inside the main actor, constrain gameX to self.position.X. Do the same for Y.
Then in your follow actor, constrain self X to game.ActorX. Do the same for Y.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx