Download

4-8 Directions 2D Rpg Movement

Hello everyone!

I’m working for a DG and currently we have a project made in RPGMAKER XP. Since UE 4 has been released as free used we have decide to give a tried. Results so far show that UE 4 is a powerfull tool to build up our project, therefore I started to study how to use blueprints.

I’m quite newbie with this stuff but I’m following the official tutorials and I’m reading the documentation and pick info up really quick.

I have a problem mainly with the character movement, because I tried to create a blueprint based on 2D platform tutorial but it’s limited to left-rigth direction.

We would like to set a 2d player into a 3d enviroment and so far we did it, but following this tutorial: https://www.youtube.com/watch?v=Af-jsQFlLFU&list=PLZlv_N0_O1gauJh60307mE_67jqK42twB&index=7

Problem emerged when we tried to combine flipbooks to up and down direction with bluepritns, because movement keep stack and rusty sometimes.

Does anyone know how to set a blueprint for this kind of character 8 movement?

Thanks in advance,

Xexu

hi
i made this for you , there is axactly what you need

Thanks dude! that’s exacly what we were looking for! :slight_smile:
Just one question, how do I add jump movement (key space bar-> jump, doesn’t work :S) or change flipbook for other actions (for example atacking, pushing and object)?
Input-> Key ->select flipbook?¿
Thanks!

Xexu

jump is working but you don’t see it , because the camera is set to orthographic , change it to perspective

for the actions , all the direction are already setted up , all what you need is adding conditions of each action

3e50f071ee86a34978c534fc56bb395329734af6.png

thanks once again! now is everything clear.
I truly appreciate it man :slight_smile:
Cheers!

Xexu

One more question please.

How can I call this ReturnNode function?

Thanks!

Xexu

add output variables

dc40f7ab14aee5fb4c185dde4e50de7cda1a86ec.jpeg

Gotcha!
Thanks one more time,
Cheers!

Xexu

Thanks Mhousse1247! Helped me out too.

I don’t know where i went wrong but I can’t get this to work for me…What are the limitations of this solution, like does this solution only work for a top down camera or am I bad at copy paste blue prints, then recreate variables and replace flipbook animations in the state machine? Would really appreciate help on how I can get this solution to work for my project also.

You know in my case I’m interested in moving this 3d character model in only 4 directions:
-up(top),
-down(bottom),
-right,
-left(side views).
https://www.youtube.com/watch?v=hSO5G-P5VIs