How to reset P-Switch item

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

Moderator: Userbase Moderators

chemalexbcn
Goomba
Goomba
Posts: 2
Joined: Fri Feb 18, 2022 5:09 am
Pronouns: he

How to reset P-Switch item

Postby chemalexbcn » Tue Feb 22, 2022 6:28 am

Hi!
I'm trying to make a section with a p-switch activation. Its objective is to clear a way in to a pipe in another section to continue the level.
I would like to make the p-switch appear again after pressing and ending the timing in order to allow player to try entering the section again and re-switching until he find the cleared pipe
Thanks!

deice
Rocky Wrench
Rocky Wrench
Posts: 620
Joined: Fri Jul 23, 2021 7:35 am

Re: How to reset P-Switch item

Postby deice » Tue Feb 22, 2022 3:19 pm

a good way to solve this problem without using a generator (so as not to enable the player to carry multiple p-switches with them) is to take a p-switch toggle block (block-670) and put it in it's own layer. then, inside the event "P Switch - Start" you'd hide that layer and show it again when "P Switch - End" occurs. this makes it so the player is forced to wait for the p-switch timer and isn't able to freely toggle the p-switch effect.

chemalexbcn
Goomba
Goomba
Posts: 2
Joined: Fri Feb 18, 2022 5:09 am
Pronouns: he

Re: How to reset P-Switch item

Postby chemalexbcn » Thu Feb 24, 2022 11:17 am

Hi! thanks for answering, it's a good option for solving.
At the moment I made something similar by making a bill launcher appearing when hitting a box, then it shoots a P switch and dissapears after 1,25 seconds
I put this launcher over another one that shoots nothing and can simulate it shoots de P-switch when hitting the box


Return to “Help and Support”

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari