So I want to create a certain level that's 2D in the sense you can only run left or right, I have set up events along the path so when you hit action button the character will jump in whatever direction they are facing, only trouble is the jump button only works when I'm standing still, if the character is moving in a direction hitting action button does not activate the event.
Am I missing something? is there any way around this or am I doomed to failure? anyone with any experience on something similar please help lol.
I tried having event boxes along the entire route and even tried one event and used a plugin to extend it's hitbox the entire length and the results are the same.
It won't be super-smooth but what you'll probably want to do is have a Common Event with trigger "Parallel Process" running in your game. (If you need a switch to be On as a condition to run the event, just have a switch that is always set to On - for example Switch #1 "ALWAYS ON"). In that event, have a Conditional Branch to the check the value of a Switch (for example Switch #2 "Currently Jumping"), and if it's Off, check whether the Jump button is being pressed in yet another Conditional Branch. If so, turn the Currently Jumping switch On, then set the player's move route to a Jump (Wait for end of route), and after that, set the Currently Jumping switch back to Off. All inside those Conditional Branches. The point of the Current Jumping switch is so that the move route doesn't keep getting set to a Jump while the player is already jumping.
If you want to make it a bit more refined, allowing the player to jump forward if they're moving when the jump button is pressed, you can run a conditional branch inside the check for the jump button, to see if the player is currently moving - you'll use the "Script" option on the last tab of the Conditional Branch options, and I think the line you'd type is $gamePlayer.isMoving() If it's true, check the player's current direction (which is a normal option in the Conditional Branch) and for each one, have a different Move Route - for example, if the player is moving, and the player is facing left, the player's move route might be a jump two spaces to the left.
You might already be aware of this, but there are a few plugins out there that give you a whole suite of tools for making an Action game in RPG Maker. The most popular is Moghunter's Chrono Engine. If all you want in your game is reasonable Jumping, then you probably don't need a plugin, but if your goal is to create something that's actually actiony, such a plugin might be your best bet.
Damn it, why did I not think of it before. Use the button common events plugin. Thanks for your help!