06-22-2013, 07:36 PM
You need to first check if the button is pressed (regardless of the switch).
THEN... you toggle based on the current switch condition:
And as MechanicalPen stated, remove the 'p'/print statement lines when you're satified.
THEN... you toggle based on the current switch condition:
Code:
if Input.trigger?(Input::L)
if $game_switches[2] = false
p "on"
$game_switches[2] = true
else
p "off"
$game_switches[2] = false
end
end