Evaluate my methods. How else to make a character jump/climb

Alright so this is just an open call for peer review on my first attempt at some simple event-y stuff. Have a look if you please and weigh in on how you would have done it! Any comments or advice are appreciated:

The goal was to make a character jump off of or climb up a ledge when pressing a button and only while on a specific region id.

In the demo, go up and right of the start point and use [space] or [enter] to try jumping off of or climbing up the ledges around the bridge and pond.

Spoiler
In the demo I'll provide below, I decided to make a way for a character to jump from a ledge (or climb up one) based on region ids. 

http://i.imgur.com/wGAJYBd.png

[SIZE=18.1818180084229px]I did a ton of googling and watching youtube videos to come to the method for recording a player's x, y and region id and came up with....[/SIZE]

http://prntscr.com/5oaf1q

[SIZE=18.1818180084229px]Then I went on to make this, which I think might be a mess BUT it does work![/SIZE]

http://prntscr.com/5oafho


Test the method in the demo: https://www.mediafire.com/?adc9u4fd88j75a7

Let me know what you think! 🙂
You know you can use image tags to just insert the images into your post ...


What would I do differently? I'd add a Wait 1 Frame (or more) right at the top of your parallel process - otherwise (especially if you have a few of them doing different things), you're going to introduce lag to your game.


In your jump parallel process event, you can do a jump from region 3. Make the y negative.


What happens if they jump and then, without moving or changing direction, are still holding down the C button or press it again? I expect it's going to make them jump backwards. That might look a bit weird.
I do know that I can use img tags. When I was throwing this together they seemed to be breaking for no apparent reason. My apologies for being hasty. 

As far as what happens if they're still pressing the button? Well they'd start going back up. Simple solutions often introduce tougher questions on how to implement what you're after. In this case the player doesn't -need- to be able to climb back up everywhere they go. 

On another note I find this illustrates to me what I could jury-rig with eventing but could probably make into a permanent system via scripts. Not to mention how that would eliminate the concern for lag, yes?
Scripts can add lag just as easily as events. The thing is, no matter which method you use, keeping it in mind and avoiding doing things that will cause it 😉


In this case, you could event it to only check every 15 frames (that's 4 times per second), but in a script it would check every frame by default, unless you added counters and tests to prevent it, and adding those things would introduce extra processing too, so you're not really gaining anything, unless it's a really complicated test that you're performing.

Original thread: https://forums.rpgmakerweb.com/threads/evaluate-my-methods-how-else-to-make-a-character-jump-climb.35532/