(solved) Controls locked after summoning Airship

Status
Not open for further replies.

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
870
Reaction score
868
First Language
german
Primarily Uses
RMMZ
I want to make a "Summon Airship" command, as seen here.

1638697466862.png

When I press PageDown, the Airship spawns and the Player lifts off, so far so good. Then I cannot control it, arrow keys are not working and I cannot land. But, I still can open the menu. When I get on the Airship the ordinary way, everything works fine.

Blank project, no Common Events, other Events, or Plugins active.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
37,918
Reaction score
10,508
First Language
German
Primarily Uses
RMMV
I'm not sure, but it might be because the conditional branch overrides the options on keyboard check by checking for the pagedown.

however if that is the case it is easy to circumvent and test: you don't have to test for that button sixty times per second as no player can press the button that fast.
so simply add a wait(10) before or after the primary conditional branch, that way you only check for page down six times per second and allow the regular controls the rest of the time.

and next time, please post the entire event window - especially if the tip above doesn't help, because there are a few other possibilities I can't check due to missing event parts.
 

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
870
Reaction score
868
First Language
german
Primarily Uses
RMMZ
Adding a Wait worked, but it wasn't smooth. Sometimes hits were not triggered correctly. But your post made me think in the right direction. I changed the Conditional into "is being triggered" and removed the wait; now it works!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
37,918
Reaction score
10,508
First Language
German
Primarily Uses
RMMV
Sometimes hits were not triggered correctly.
that is usually an indicator of the wrong number of waits, and the reason why you have to experiment to find the correct number (which could be both higher or lower because that effect can describe two different causes for lag).
just as info for the next timing proble since you solved this with a different way.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
10,103
Reaction score
6,392
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I am supposed to be preparing to teach my students this afternoon and tomorrow morning about Refugees, Asylees, and Fraud/Misrepresentation and all I can think about is how to improve my Turn Order display. :stickytongue:
Try changing POV battle, near and far away like suikoden...
watercave2.jpg

diablofar.jpg

In the end I choose near over shoulder resembles RE4. Tight close window better. The correlation between battleback, monster style and battler should also be observed and merged.
Upgraded my avatar to be cuter.
When you look for several things for ages and then suddenly find it all at once.

Status.png
Status2.png
equip.png
I'm going to see if I can set up a triple booting setup. Windows for standard use & gaming, debian for linux development and manjaro for linux gaming, wine & proton use.

Forum statistics

Threads
129,703
Messages
1,204,420
Members
170,768
Latest member
Tiki
Top