How to make a grid based movement like typical RPG Maker games

Hello,
I wanna experiment with Unreal Engine and would like to create a grid based character movement, like those typical RPG Maker or classic Pokemon games.

I am quite new with Unreal Engine so a more detailed explanation would be appreciated.

It would be better for you to watch a fully-voiced tutorial than read through the dozen pages I’d blurt out trying to explain it.

I found this tutorial for you. Skimming through it, it seems to be a very good tutorial. He’s explaining every step and why he’s doing things- a rare find in the tutorial space. It’s a 3-parter totalling ~1h40m.

There is also a legacy sample project you may want to check out an poke around in, but I’d recommend the tutorial for a full understanding.

Thanks a lot for the reply!
I also searched for tutorials but could hardly find anything useful, I will check out the one you linked in a few hours.

You might get more answers if you move this post to the programming section :slight_smile: . I don’t know how familiar you are with programming, c++ or blueprint, but there are several data types to help you out. Usually a grid is stored in a vector, in this case a 2D vector of integers would represent a grid (think of chess, where one row is A B C etc and the other 1 2 3 etc), each square on the board is a unit on one axis on the vector. Next you define a grid size, such as “100” which could be 100 cm per unit (think of minecraft blocks would be 100x100x100 on a location on the grid). With that in place, you can say “my character moves from position 1X1 to 1X2” which is very similar to chess. to actually move it a few units, you would use the “SetActorLocation” node on a class deriving from AActor and set it to (grid position) X (grid units), in the given example (1X2 with 100 units) you end up at position X:100 Y:200. If none of that makes sense you should first start learning the basics of blueprints on the web, Matthew Wadstein has a great channel on youtube.