Censor on and off Images via Custom Pref Button.
Posted: Sat Mar 01, 2014 5:06 pm
(Been some time sense I've asked for some help.)
I've been having some trouble implanting a working censor option into my game. I had a similar issues with textbox arrows a while back and I was hoping it would work the same.
#Screens
#Script
#Script
I've tried the Conditional Switch code above, but, I get a Syntax error; I might be using it the wrong way.
Any help is appreciated!
I've been having some trouble implanting a working censor option into my game. I had a similar issues with textbox arrows a while back and I was hoping it would work the same.
#Screens
Code: Select all
hotspot (35, 282, 117, 45) action SetField(persistent, "arrow", "non") activate_sound "Buttonexit.mp3"
hotspot (167, 282, 117, 45) action SetField(persistent, "arrow", "arr") activate_sound "Buttonexit.mp3"
hotspot (376, 358, 181, 63) action SetField(persistent, "censor", "cen") activate_sound "Buttonexit.mp3"
hotspot (571, 358, 181, 63) action SetField(persistent, "censor", "non2") activate_sound "Buttonexit.mp3"Code: Select all
init -1 python: #Censored
if persistent.censor:
persistent.censor="cen"
if not persistent.censor:
persistent.censor="non2"
init -1 python: #Arrows
if persistent.arrow:
persistent.arrow="arr"
if not persistent.arrow:
persistent.arrow="non"Code: Select all
image SxSceneHamaruRouteHamaruRyouka 1a = "ConditionSwitch("persistent.censor==True","zensoredSxSceneHamaruRouteHamaruRyouka 1a", "persistent.censor==False", "SxSceneHamaruRouteHamaruRyouka 1a")"Any help is appreciated!