Script or event to make character bump into walls.

Hey there! So i'm working on my first game[well... "first" game, i've restarted this project like. 12 times.], and something that always annoyed me with RPG Maker is that when you bump into a wall the character just stops walking.

i know someone had created a script for VX. But i have no idea how any of the scripting works with MV.
Can you give a bit more detail of what you want to happen when the character bumps into a wall. Do you want them simply to turn round and go off in another direction? Is this for NPCs only?
Can you give a bit more detail of what you want to happen when the character bumps into a wall. Do you want them simply to turn round and go off in another direction? Is this for NPCs only?

I'm wanting this for the player characters.
what i want to happen is the walking animation to still play when it registers a directional input even if they cant walk forward- that way they walk in place for a step when bumping into things
Would that be the same as 'Stepping animation'? That keeps going even when the sprite is stationary - but it is all the time, which is possibly not what you are wanting.
Would that be the same as 'Stepping animation'? That keeps going even when the sprite is stationary - but it is all the time, which is possibly not what you are wanting.

exactly thats at all times, and i only want it to trigger when it recognizes you're pressing a button
exactly thats at all times, and i only want it to trigger when it recognizes you're pressing a button
Do you mean like in the older pokemon games?
Do you mean like in the older pokemon games?

yeah! or in other 3D and 2D games where if you walk into a solid object you still take a step.
yeah! or in other 3D and 2D games where if you walk into a solid object you still take a step.
Here you go:
Spoiler
4d8d2479bff400eedd59077b1e310c79.png

I know I made it through an event which means a lot of copy and pasting for each individual wall tile, but this is what I believe you're looking for. You can adjust the speed to however you want. Your default speed will be the 2nd speed change there. Your increase or decrease will be the first speed change there.

Example: https://gyazo.com/bd3e24f89f8f12c411f724fa0d570c02
Here you go:
Spoiler
4d8d2479bff400eedd59077b1e310c79.png

I know I made it through an event which means a lot of copy and pasting for each individual wall tile, but this is what I believe you're looking for. You can adjust the speed to however you want. Your default speed will be the 2nd speed change there. Your increase or decrease will be the first speed change there.

Example: https://gyazo.com/bd3e24f89f8f12c411f724fa0d570c02

i mean.... i'm wanting it on every tile. and i was REALLY hoping for a script. trying to put that on every single surface doesnt really work.
[plus it also doesnt work for the biggest thing i wanted it for ether-]
i mean.... i'm wanting it on every tile. and i was REALLY hoping for a script. trying to put that on every single surface doesnt really work.
[plus it also doesnt work for the biggest thing i wanted it for ether-]
Yanfly has a Region Events plugin, but it only works for when the player steps on the region tile. That's as much as I could find.
Alright if someone could find a script that'd be great... i KNOW it was a thing for one of the one versions of RPG maker
Moved to: JS Plugin Requests
Have a look to see if Shaz ported her Region Common Events script to MV. I think she did, but am not 100% sure. She had the option that if you were facing the tile, you could designate an action. That was specifically for things like cliffs and walls and so would work for you. All you'd have to do is to paint the lowest tile with a particular region.
Moved to: JS Plugin Requests
Have a look to see if Shaz ported her Region Common Events script to MV. I think she did, but am not 100% sure. She had the option that if you were facing the tile, you could designate an action. That was specifically for things like cliffs and walls and so would work for you. All you'd have to do is to paint the lowest tile with a particular region.

the thing with that though is i want it to act on /everything/ and painting every single map with region tiles sounds... not fun
There is not going to be an effortless way of doing this, as far as I am aware. Whether it is worth it or not may, in the end, boil down to how much you want this feature.
the thing with that though is i want it to act on /everything/ and painting every single map with region tiles sounds... not fun
Region tiles are how it's done in older pokemon games as well. I can bring up a map of how it looks if you want. So there isn't much you're missing, no magic tricks or anything. Some things just take time.
There is not going to be an effortless way of doing this, as far as I am aware. Whether it is worth it or not may, in the end, boil down to how much you want this feature.
Region tiles are how it's done in older pokemon games as well. I can bring up a map of how it looks if you want. So there isn't much you're missing, no magic tricks or anything. Some things just take time.

yeah i suppose region tiles might be the best way to do it- i cant find Shaz's stuff, so if someone can link that
and if mihe you could show me how it'd look that'd be cool too
I'm wanting this for the player characters.
what i want to happen is the walking animation to still play when it registers a directional input even if they cant walk forward- that way they walk in place for a step when bumping into things
Run this script once and see what happen (you know how to run script event right?)
var cke = Game_CharacterBase.prototype.update;

Game_CharacterBase.prototype.update = function() {

if (Input.dir4 != 0) {

$gamePlayer.setStepAnime(true);}

else {$gamePlayer.setStepAnime(false);}

cke.call(this);

}
Run this script once and see what happen (you know how to run script event right?)

i uh-- dont really :x
i was trying to look it up and i cant find an easy to read 'how to'
i uh-- dont really :x
i was trying to look it up and i cant find an easy to read 'how to'


(メ゚皿゚)

See the "Script" command at near bottom?

upload_2018-6-19_11-15-24.png


Paste script into it like this:
upload_2018-6-19_11-16-18.png


This is how your event look:
upload_2018-6-19_11-16-36.png


Now play your game and remember to talk to this event once (unless it's parallel or autorun)

(メ゚皿゚)

See the "Script" command at near bottom?

View attachment 92366

Paste script into it like this:
View attachment 92367

This is how your event look:
View attachment 92368

Now play your game and remember to talk to this event once (unless it's parallel or autorun)

that works! though interestingly enough, if your character starts under a tile [i have it set up so they start in a bed with a tile that allows players to pass behind it as a blanket] it'll just stick the player in place.

and interestingly enough it also doesnt trigger if the character is moved via an event, do you know a way i could make that happen?

Original thread: https://forums.rpgmakerweb.com/threads/script-or-event-to-make-character-bump-into-walls.96627/