Walking on walls?

I've developed a jumping system where the character jumps 2 tiles ahead of where they are facing. I originally made it for RPMXP and it worked fine but I have transferred the code to RPMVXA and now the character can jump on to the top of walls and walk around, essentially allowing the user to bypass any obstacles. I have check the settings of the tile sets and they are set as impassable.

Any thoughts?

Attached is a screen shot of the first bit of code, the rest is the same just checks the characters direction before jumping.

ScreenshotHelp1.jpg
You can walk on ceilings (the ones in TIleA4), if you manage to get on them.


Though if you mean walls, check if the upper left tile in TileB is set to a star.
I meant both actually. Just saw the pop up help state that the ceiling tiles can be walked on. I checked the top left tile of B and its a star. Still if I checked "Skip if cannot move" I shouldn't even jump into the wall...
Don't quote me on this, but I think jumping basically ignores all passage settings of the tiles, so it doesn't matter if you checked it or not.


I guess you could paint the walls/ceilings with a region ID, and then calculate before you jump if the player will be landing in a region ID, and if so, cancel the jump.


Oh, and you can shorten your current event to something like this (I didn't adjust the jumping coordinates):


1783.png



You only need to check if the Z button is pressed once after all.
Thanks, I'll try the region ID tags
Lemme know if this works:

Basically put regions wherever you don't want your players jumping. Like right before walls and the such.

Spoiler
qHAT0RR.png
Or if you have areas where they can only jump in 3 directions you can use additional regions. (say you have an area that you can jump up, left, or right, but not down because there's a wall there.)

Spoiler
ivtpOYA.png
These events will check to see if your region is 1, if it isn't it'll check to see if it's region 2, if it is it'll then check to see what direction you're facing and will allow you to jump if it's not a restricted region.

If it is region 1 nothing happens.

If it isn't any of the regions it just lets you jump.

On the other hand you can use regions to dictate the *only* areas you can jump in so that's another option.
I would do it more like this: calculate whether or not the player will land on a region ID (aka; walls/ceilings).


Paint a region ID over the walls and ceilings, and then use this event code:


3g7.png



I only did down and left right now, but you get the point; subtract/add 2 to the player's X/Y based on the direction they're facing to determine if they'll be entering a region.
This looks great! I'm trying to do the same thing but with terrain tags in the tile set so I don't have to have to place a region marker on every tile I don't want jumped on
Sure, sure, terrain tags should also work. Let us know if it worked out for you 🙂
I just switched Region ID to Terrain Tag in the "Get Location Info" command. Gave all of the wall and ceiling tiles a terrain tag of 1 and it works! Thanks for all of the help!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/walking-on-walls.15387/