I wanted to know how I can get an object that is spawned to follow another object using the transition library and then have it stop a bit behind the object. Note: i am controlling the object that needs to be followed with a joystick, and am basically trying to make the behavior of a snake.
Heres what i thought:
transition.to(body{time=300, x=snake.x-distance, y= snake.y-distance, rotation=snake.rotation})
only problem is it follows for 300 milliseconds like i told it to and then stops, and even if i try the loop method, it still doesn’t want to run.
Thanks