プレイ日記
Levi LeviJS
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....
2そうだね
プレイ済み
返信[1]
親投稿
Autz sonic-HD8765
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.
2そうだね
プレイ済み
返信[2]
親投稿
Levi LeviJS
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
2そうだね
プレイ済み
返信[3]
親投稿
Levi LeviJS
there'll also be parameters detailing how many tiles the sprite can move as well
1そうだね
プレイ済み