(solved) Controls locked after summoning Airship

Status
Not open for further replies.

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
642
Reaction score
620
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
34,763
Reaction score
8,975
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
642
Reaction score
620
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
34,763
Reaction score
8,975
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,227
Reaction score
6,004
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

Well turns out I'm not going to the fair... COVID cases way too high in my state. Instead I'll just go to Chuck E Cheese's and transfer all my tickets from Orlando to my normal PlayPass wristband.
NV4LMYs.gif

New UIs

The Sinners who Never Sinned thread has been approved by the moderators! Thank you so much!
:ewat:

index.php
I oughta set up my itch.io, but I'm like, uugghhh I DON'T WANNA. :kaocry: Why does errything feel like such a chore right now? I don't wanna just complain tho, so y'all got any hot tips for how to make a really pretty, sexy, sweaty, flowery itch.io page? BEST TIP WINS. :kaoluv:

Also here's a beautiful nymph to liven up the day for y'all! (No it's not me.)

alice_nymph(old).png
Hello again, guys! Today, I come to you with not one, not two, but THREE new emotion busts for Ramona!
RAng2FPS.gifRAng5FPS.gif
Anger

RWin2FPS.gifRWin5FPS.gif
Wink

RCry2FPS.gifRCry5FPS.gif
Crying

Forum statistics

Threads
118,759
Messages
1,118,493
Members
155,909
Latest member
Jerrymon
Top