Hello does anyone know how to enable and disable a script when pressing a button?
For example pressing and holding the SPACEBAR will enable Bloom, and releasing the SPACEBAR will disable the Bloom.
Hello does anyone know how to enable and disable a script when pressing a button?
For example pressing and holding the SPACEBAR will enable Bloom, and releasing the SPACEBAR will disable the Bloom.
keypress space --------and----------property=True
(same keypress space)-----nand------property=False
if property changed --and-----------bloom on
if property True-----------/
if property changed ----and-------------Bloom off
if property False-----------/
Keypress space in true and false mode.
Thank you BluePrint and you to Monster I will definitely read the Guide you two are awesome.
Bloom is a 2d filter, ran by a actuator, so in this case,
you can use positive pulse to turn the actutor (add bloom on)
and negitive pulse to turn the actuator (add bloom off)