Turn-based movement?

HelioUnicorn

Warper
Member
Joined
Jan 17, 2020
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
For a long time now I've been trying to add turn-based movement in a dungeon map to my game. It's sort of like Pokemon Mystery Dungeon, for anyone who's played those. Basically, every time the player moves the enemies are set to approach you, one step at a time, until they finally touch you and a battle starts. I've tried doing it on my own, with only some success. I made a common event that emulates the turn-based movement (in screenshots below) and I put it on every dungeon map as an event with the parallel trigger. Because of how it's set up it's got some bad glitches, though, like enemies getting stuck in one spot and being unable to move anymore. Is there a better/simpler way to do this? ALL I want is the movement though, when I've tried googling this type of thing before the results that came up were focused on the overworld battle system the PMD games have, which doesn't work for me since I just want the normal RPG Maker enemy battles when an enemy touches you. Any help with this would be greatly appreciated!turn movement pt 1.pngturn movement pt 2.pngstop.png
(Note: Enemies are set to move towards player every time the Player Turn switch is turned on.)
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,343
Reaction score
330
First Language
German
Primarily Uses
RMMV
Your Stop Event is useless in best case, in worst case it causes bugs or lag.
The Player Moveroute in "TurnMovement Event" should be all you need.
Because the "Stop Event" is overwriting the previous moveroute, but since he started moving its efect does not get visible. If your Player would move 3 tiles with one button press, than the player would stop walking after the first step.
- Delete Stop Event
- In "TurnMovement Event" remove the "Wait" in the Moveroutes.
- Put the Command "Turn Switch 17 Off" into the Player Moveroute after the step forward command, than it flips at the right time to Off like you want.

Iam not sure about your other problem, maybe some kind of path finding plugin? never used one, so i cant recomment one.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I made an RPG Discord bot and it FINALLY got accepted on top.gg and is already trending!! <3
1st of March 2014 I joined and it has been a great experience for 6 whole years. The only thing I can say is a huge thank you to ALL members of this forum.
Hope everyone is enjoying their weekend!!!
Now irinea just blocked me in discord
Just finished making a character selector at the beginning of the game that allows the player to pick gender and skin tone. I couldn't be more pleased.

Forum statistics

Threads
94,615
Messages
922,408
Members
124,502
Latest member
DerKruste
Top