I want to move an entity to an dynamically created position. The starting point of the entity is set manually, while the other positions are created dynamically by calculation depending on the actual position (and the obstacles in the way of the entity). So if the entity is moved one field in the grid (positions defined by x: column*gridSize and y: row*gridSize – row[0, 8] | column[0, 12]) the goal position should be recalculated (even if the actual goal position wasn’t reached yet).
I’ve tried to realize this with the “Path Movement”, by setting the loop to infinte (loops: Animation.Infinite) and creating the goal point dynamically. However, I didn’t know how to set the start position without repeating it in the loop to and how to reset the position even if the entity has only moved one field (without reaching the entered waypoint) – furthermore the movement is always restarting with the first position if any one of the waypoints is changed.
I hope you can help me in this matter and I’m looking forward to a quick answer.