How do I make an object gradually move in grid based moving

i need to make a grid based movement that that dose not imidiatly move

Would you like something to move along a grid, when you press a key? Sorry, I don’t understand what you would like to do.

I suggest to try to use the Ease behavior to gradually move from one grid to the next.

2 Likes

I would like to have an object move one grid space in the opposing direction when it hase another object next to it

my character checks if there is any thing next to it every few seconds then calculates where in needs to move
like this
Screenshot 2024-12-11 8.05.36 AM
Screenshot 2024-12-11 8.05.28 AM
but when it moves it uses the position block but that just teleports it to a new grid space wich means that it can detect an object while it moves wich looked odd
like this
Screenshot 2024-12-11 8.05.49 AM
Screenshot 2024-12-11 8.05.55 AM
I need it to move either left right up or down depending on its surroundings only once second do it lookes more like this

Screenshot 2024-12-11 8.05.49 AM
Screenshot 2024-12-11 8.06.06 AM
Screenshot 2024-12-11 8.05.55 AM

I’m not sure how to use that can you show me how to apply it to my code

this is the game so you can look at it

thanks so much for all the help

Click the behavior and then click the help button. It should play a video on how to use the behavior. If your still having issues, let me know.

it does not have a video linked

1 Like

Oof okay, then here’s how to use it.
Flowlab uses 32 pixels per block, so the math is just to move it by pixels with ease.

1 Like