Made a function that a sprite will follow the exact path of the target to move by writing a string with button inputs and reading each of them as the x,y destination of sprite. This will be handy....
Well done dude. But i think that, if you do weird stuff while choosing the place, the sprite will follow that weird pattern for no reason. Right?
Something i think of, is to move first on the X axis, then on the Y axis, depending of where the destination is located. And on each step, check if nearby "blocks" are passable. But i have to test it first.
Problem from that comes when there are obstacles on map you don't want the moving sprite to pass through. So it is easier like this and check bg data before writing the move string with bttn input so it prevents target from hitting obstacle and therefore the moving sprite will avoid it