Page 1 of 1

How to reset P-Switch item

Posted: Tue Feb 22, 2022 6:28 am
by chemalexbcn
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!

Re: How to reset P-Switch item

Posted: Tue Feb 22, 2022 3:19 pm
by deice
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.

Re: How to reset P-Switch item

Posted: Thu Feb 24, 2022 11:17 am
by chemalexbcn
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