mar_cuz
Member
Hi Guys,
I want an object, obj_Character, to follow another object, obj_Leader. The thing is, I don't want obj_Leader to mover further than 32px away from obj_Character at all times. The player will control obj_Leader and it must stay within 32px in any direction from obj_Character. Also, when obj_Leader reaches 32px away, I don't want it to stop, just not move further than 32px away while still moving the current direction at the current speed.
The game is top down rpg like perspective with movement in all directions. I have looked into lenghtdir_x & y but I am stuck as to how I would approach this.
Any ideas, please help.
I want an object, obj_Character, to follow another object, obj_Leader. The thing is, I don't want obj_Leader to mover further than 32px away from obj_Character at all times. The player will control obj_Leader and it must stay within 32px in any direction from obj_Character. Also, when obj_Leader reaches 32px away, I don't want it to stop, just not move further than 32px away while still moving the current direction at the current speed.
The game is top down rpg like perspective with movement in all directions. I have looked into lenghtdir_x & y but I am stuck as to how I would approach this.
Any ideas, please help.
Attachments
-
9.3 KB Views: 20