Player hold keys is temporary

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

Turtle Guy
Buster Beetle
Buster Beetle
Posts: 83
Joined: Tue Sep 10, 2024 3:50 am
Flair: Spinysaurus
Pronouns: he/him/hem
Contact:

Player hold keys is temporary

Postby Turtle Guy » Sat May 31, 2025 4:06 am

Ok, so i want to do a cutscene in my level and used the player hold keys event. But for some reason the holding keys thing is only temporary, while normally it's indefinite. I tried a bunch of workarounds (making a couple of events triggering one after each other, multiple triggers, etc...), but nothing worked.

GIF of problem:
Image

GIF of how it's supposed to work
Image

Level assets (in case something there is the culprit)
Image

KBM-Quine
2025 Egg Hunter
2025 Egg Hunter
Posts: 140
Joined: Wed Jan 15, 2014 11:10 am
Flair: Crazy with a K

Re: Player hold keys is temporary

Postby KBM-Quine » Sat May 31, 2025 4:48 am

the hold keys option in an event will keep keys held until another event is triggered. this is because the fields for those are set every time an event triggers. so you'd need to supply the keys to every event in a chain until you no longer want them held

Turtle Guy
Buster Beetle
Buster Beetle
Posts: 83
Joined: Tue Sep 10, 2024 3:50 am
Flair: Spinysaurus
Pronouns: he/him/hem
Contact:

Re: Player hold keys is temporary

Postby Turtle Guy » Sat May 31, 2025 6:59 am

KBM-Quine wrote:
Sat May 31, 2025 4:48 am
the hold keys option in an event will keep keys held until another event is triggered. this is because the fields for those are set every time an event triggers. so you'd need to supply the keys to every event in a chain until you no longer want them held
I tried that, but it didn't work. (well, ok it did kinda work, but there was a small time window where the player could move freely and i don't want that. Setting the time between events to 0 for some reason makes the hold keys function not work correctly in the next event)


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari