Class: Game_Switches

Game_Switches

new Game_Switches()

The game object class for switches.

Methods

Clears all switches
Initializes the switches
Processing when a switch's value is changed

setValue(switchId, value)

Set the switch value for the given switch id
NameTypeDescription
switchIdnumberThe switch id
valuebooleanThe value to store in the switch

value(switchId)boolean

Get the switch value for the given switch id
NameTypeDescription
switchIdnumberThe switch id
Returns:
TypeDescription
booleanThe value stored in the switch