Hello All!
I am trying to make an object follow the player within constraints. I have a 2D Sprite of a pupil within an eye, and I am trying to make it rotate towards the player as they walk by it on screen as well as move towards the player - as long as it is within the bounds of the eye. When it reaches the edge of the eye it should stop there and then only move again if its going back the other way (ie the player walks past it so now it's moving a different direction)
I've got the first bit of the functionality down with the "Look At" Action - there is a great tutorial for this. However second bit is tricky.
"Move Towards" with a "Clamp" seems like it would be the best, but I can't figure out how to clamp or constrain that movement in any way. Move towards seems to ignore it.
"Move Towards" also ends after reaching the max distance. I was also considering collisions to bound the pupil within the eye, but Move Towards doesn't seem to be respecting my collision boundaries
Any thoughts? I'm relatively new to playmaker so forgive me if this is something very simply solved!