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,342
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

welp, the stock market went down by 7% because of corona today. Time to buy stocks?
Man, being able to edit my game WHILE testplaying it is like the most convenient thing EVER. Thank you, MV...it even makes up for the OGG thing. Well, almost.
Back in the old days, long before I was born, salted crisps - or potato chips, for you yanks - came unsalted and had a little pouch of salt to manually shake on it. Of course, things are more efficient now, but Walker's still brought back the old 'Salt 'N' Shake' style a couple years ago. Dunno why, but if I had to guess, I'd say it's because the nostalgia crowd were getting salty.
Guys I just want to sit around and work on my game! *gets lots and lots of money shoveled at him* Game, I don't recall a game. What game? :LZSexcite:

Forum statistics

Threads
94,554
Messages
921,838
Members
124,416
Latest member
zths
Top