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,502
Reaction score
412
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

New MZ Update! Subfolders for Assets, Search in Plugin Help, Map Layer Buttons | RPG Maker News #78

A little WIP I decided to drop for something coming in 10-12 hours!
9.PNG
I just did some math and... apparently what seemed to be a little fun gimmick turned out to be an 80+ actors project :kaoswt2:
Yay! the original character contest 3 pack is here!
Both MV and MZ looks very good, congratulation for both RMW and Tkool participant!
I definitely can add these characters to use for my game project.

Steam link
The worst part of game development has to be marketing. Ugh...

Forum statistics

Threads
112,481
Messages
1,068,572
Members
146,147
Latest member
KeeperNovaIce
Top