How to make delayed movement

im trying to make an RPG and i made that red square follow the player but it keeps taking turns and might get stuck on walls if i made a map. How do i make the red square follow the path of the player a few milliseconds after

Original Topic : Charta Devlog

4 Likes

You can use the tilemap a star, It kinda just adds more blocks to the scene category, but you can to pathfinding

2 Likes

@Spike I would log each position in an array every time they change velocity and the follow that and then to the next one. Once it reaches that point remove it from the array.

3 Likes

yo thank you so much​:face_holding_back_tears::folded_hands:

2 Likes