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,350
Reaction score
332
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 usually don't enjoy survival games, but I absolutely love Conan Exiles.
Basically Everyone: Dont make a long game the first time. Me: I guess i'll make a REALLY long game in that case >:p
I've developed a habit of thanking cleaning ladies for their work.
Sorry Aerith... I will abandon your shoes... :guffaw:
Spent a whole bunch of time today reworking the area in the video because someone said it was too illusory. So I reworked it so it changes less, moved the grass up to the same level as the player.... And found enough extra resources to make the grass moves when the player touches it. Also lots more water, because it looks amazing. I'll probably put up a short updated video later today.

Forum statistics

Threads
95,769
Messages
931,742
Members
126,169
Latest member
Nktn18
Top