I'm currently making a game where the player can build speed as he dashes. The longer he dashes, the more speed he builds.
Said system is being coded through an event, and I'm actually really close to finishing it, but one thing is holding me back.
This is the first page of the event, which sets off another page if the Shift key + a directional key are being pressed.
This is the second page, and where the problem lives. There is a third one but that works so it doesn't matter.
My problem is that this code is supposed to check if the Shift key is still being pressed and if not, it will turn the self-switch off and restart the event. The thing is that the wait command before the self-switch that sets off the next page is causing the Else statement function to be delayed. Basically, it will wait 140 frames (in my case) before whatever is inside the Else statement happens.
I need to find a way to bypass this but so far, I have failed. Could anyone please enlighten me on this? Sorry if this is a super basic and an easily solvable issue. I'm really, really new to RPG Maker, perhaps to coding as a whole.
Said system is being coded through an event, and I'm actually really close to finishing it, but one thing is holding me back.
This is the first page of the event, which sets off another page if the Shift key + a directional key are being pressed.
This is the second page, and where the problem lives. There is a third one but that works so it doesn't matter.
My problem is that this code is supposed to check if the Shift key is still being pressed and if not, it will turn the self-switch off and restart the event. The thing is that the wait command before the self-switch that sets off the next page is causing the Else statement function to be delayed. Basically, it will wait 140 frames (in my case) before whatever is inside the Else statement happens.
I need to find a way to bypass this but so far, I have failed. Could anyone please enlighten me on this? Sorry if this is a super basic and an easily solvable issue. I'm really, really new to RPG Maker, perhaps to coding as a whole.