help ... "if button is pressed"

Hello to all

Sorry for my English, but I am using the translator.

I know I am going to ask a question that for many will be an easy task, but I would need your help.

How do I use the "if button is pressed" ???

I have the Plugin Torch and I wish that when "Page down" is pressed the torch is lit and when the button is pressed again, "Page down" the torch goes out. Plugin uses a swith.

anather thing how can I make the bars associated with a variable and put them always visible on the screen ??
use common event
The condition "if button is pressed" only checks the press in that single frame it is executed, so you'll need a parallel process checking if the button is pressed or not.
ok, I resolved.

Thanks for your help   😀   BD

Original thread: https://forums.rpgmakerweb.com/threads/help-if-button-is-pressed.54443/