Jumping problem on Mountains

Hello everybody, I hope you are doing well.

I have a problem with jumping event. When I am on the montain I can jump on the house top (yellow signs). But when I am in front of the cave I can jump on the mountain (red sign).

I dont know how I can allow the player to jump only between house top and mountain. I want an universal solution and not a solution only for this situation if you know what I mean.

Many thanks to everyone!
You need to create conditional branch inside that event, and if player is facing down or up, then make player jump, if left or right, then do nothing. Not sure what's in the event because I don't know german language. If you want to create "universal jumping event", then you need to use more parameters, like regions for example (if region in front of player is X and tile later is Y, then jump or something like that).
You need to create conditional branch inside that event, and if player is facing down or up, then make player jump, if left or right, then do nothing.
Thank you for your reply but like I said I want an universal solution. Your solution is not good when I jump for example from right to the house top. Any other ideas?
Thank you for your reply but like I said I want an universal solution. Your solution is not good when I jump for example from right to the house top. Any other ideas?
Like I said ( 😛 ), use regions to determine where the player can jump. Set region X on the roof, and check second tile in front of the player while interacting with event. If region = X, then do the jump.
Screen_01.jpg
Like I said ( 😛 ), use regions to determine where the player can jump. Set region X on the roof, and check second tile in front of the player while interacting with event. If region = X, then do the jump.
Sorry you are right, my fault:LZYcheeze:

One silly question: I never worked with regions. Could you maybe explain how I do it with regions?
One silly question: I never worked with regions. Could you maybe explain how I do it with regions?
It's just your event commands and some math.

Control Variable -> X -> Game Data -> Player X
if player is looking up, x - 2. If player is looking down, x + 2.
Control Variable -> Y -> Game Data -> Player Y
if player is looking left, y - 2. If player is looking right, y + 2.

Get Location Info -> Region ID -> Designation with Variables -> X, Y
if that region ID is whatever, jump to it.
Sorry you are right, my fault

One silly question: I never worked with regions. Could you maybe explain how I do it with regions?
Of course.
1. First we need to get player coords, so create a variables called "player X" and "player Y" and set them (as player X and Y positions on map) - do that in the jumping event.
2. Depending on which direction player is facing (conditional branch: player is facing up/down/left/right), add/substract +2 or -2 on X and Y, to make the X and Y positions like 2 tiles in front of the player. So for the player facing right, variable "player X" +2, for left, "player X" -2, etc.
3. Make a variable called "region ID" and use "get location info", where you set the "region ID" to region ID of the tile, depending on the "player X" and "player Y" variables.
4. Create conditional branch where you check variable region ID = 1, and if yes, just do the jumping depending on player facing direction again.
Of course.
1. First we need to get player coords, so create a variables called "player X" and "player Y" and set them (as player X and Y positions on map) - do that in the jumping event.
2. Depending on which direction player is facing (conditional branch: player is facing up/down/left/right), add/substract +2 or -2 on X and Y, to make the X and Y positions like 2 tiles in front of the player. So for the player facing right, variable "player X" +2, for left, "player X" -2, etc.
3. Make a variable called "region ID" and use "get location info", where you set the "region ID" to region ID of the tile, depending on the "player X" and "player Y" variables.
4. Create conditional branch where you check variable region ID = 1, and if yes, just do the jumping depending on player facing direction again.
I dont find "get location info" at 3. Where I find it?
I dont find "get location info" at 3. Where I find it?
It's in "Map" on tab 3 (event commands).
It's just your event commands and some math.

Control Variable -> X -> Game Data -> Player X
if player is looking up, x - 2. If player is looking down, x + 2.
Control Variable -> Y -> Game Data -> Player Y
if player is looking left, y - 2. If player is looking right, y + 2.

Get Location Info -> Region ID -> Designation with Variables -> X, Y
if that region ID is whatever, jump to it.
Thank you very much. It worked! I think you meant if player is looking up/down, y -/+ 2 and not x and for looking left/right x -/+ 2, right?

I thank you very much for your solution!
Of course.
1. First we need to get player coords, so create a variables called "player X" and "player Y" and set them (as player X and Y positions on map) - do that in the jumping event.
2. Depending on which direction player is facing (conditional branch: player is facing up/down/left/right), add/substract +2 or -2 on X and Y, to make the X and Y positions like 2 tiles in front of the player. So for the player facing right, variable "player X" +2, for left, "player X" -2, etc.
3. Make a variable called "region ID" and use "get location info", where you set the "region ID" to region ID of the tile, depending on the "player X" and "player Y" variables.
4. Create conditional branch where you check variable region ID = 1, and if yes, just do the jumping depending on player facing direction again.
Thank you very much for your help! It worked perfectly and now I am more familiar with regions. Your solution worked!
Happy that I could help!
Thank you very much. It worked! I think you meant if player is looking up/down, y -/+ 2 and not x and for looking left/right x -/+ 2, right?
Right 😛

Original thread: https://forums.rpgmakerweb.com/threads/jumping-problem-on-mountains.156579/