(solved) Controls locked after summoning Airship

Status
Not open for further replies.

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
699
Reaction score
673
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
35,889
Reaction score
9,514
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
699
Reaction score
673
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
35,889
Reaction score
9,514
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
9,645
Reaction score
6,152
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

[Literally everything] is not defined.
Some neat things I made.
Shown to you in the form of an awful Windows Movie Maker Video.
1653453172179.png
Another amazing plugin by Dsiver! Thank you!

Salvage plugin. Craft something you decide you no longer need, or find an item you have no interest in, salvage it for scrap and resources. As you salvage items, gain EXP and level up. The higher your level, the better odds you have at succeeding, and the more material you'll actually acquire.
Harold Jam 2022: Dark Universe game jam is live! https://itch.io/jam/haroldjam22

Forum statistics

Threads
122,112
Messages
1,146,577
Members
160,393
Latest member
Highway_Star
Top