Main Menu
  • Welcome to The RPG Maker Resource Kit.

Ignoring map properties...

Started by Eggplant Wizard, June 02, 2010, 03:24:38 PM

0 Members and 1 Guest are viewing this topic.

Eggplant Wizard

Is it possible to make an event that ignores map properties?

I'm making a game set in the modern world. I have a city map that doesn't allow wrapping. What I would like to do is put some moving vehicles on the map. ...but I would like these vehicles to be allowed to wrap around the map. That way they can just go in one direction constantly, and I don't have to program a certain route for them.

I'm probably asking the impossible again, but what the heck...
It's not what a man stands for that counts. It's what he falls for...

modern algebra

Why not just make an event that sets the move route (through an event command, not setting) for exactly the amout of squares it has to move. Set it to wait until it makes all those moves, and then use a set event position command back to the other edge of the map and repeat the event. Or, alternatively, just set up the route in the event and have a parallel process event check the X position of that event and, once it reaches the edge of the map, use the set event location command.

Eggplant Wizard

#2
I'm pretty new at this, so I'm not totally sure what you mean. I've tried a couple things, but I'm not getting the results I'm after. Usually my character just stands there, and I can't move him at all. ...or the game doesn't respond to any buttons I push. Could you go into a little more detail, please? Thank you.
It's not what a man stands for that counts. It's what he falls for...

Mishka

#3
Make sure you have the move route set for "this event" and make sure you click the checkbox "ignore impossible moves", else, if something gets in its way, your game will freeze.


modern algebra

I attached a picture of the moving event (dog, or car in your case) and the check event. Notice that the dog has a set pattern - move right repeatedly - wait if something gets in its way. That's all it has to do.

The check event is on parallel process. It saves the dog's X position in a variable and it then checks it. That map is 40 squares wide, so 39 is the last square the dog can be on before the end of the map. Once he's there, it transports him back to the left edge of the map.

Eggplant Wizard

It's not what a man stands for that counts. It's what he falls for...