70. Switch the inherited screen look by script
Change Game Setting can replace the whole global scene-shader configuration. This is a convenient way to keep a style’s layers and dedicated options together. The room must use the global stack for that change to affect its appearance.
extends PCAScriptBasefunc run() -> void:
await ChangeGameSetting({"setting":"globalSceneShaders",
"value":{
"layers":[{"preset":"psx","intensity":1.0}],
"psxPixelSize":3, "psxColorBits":5,
"psxDither":1.0, "psxJitter":0.0
}})To clear that runtime look and any held pulse/shake, use this separate record:
extends PCAScriptBasefunc run() -> void:
await ChangeGameSetting({"setting":"globalSceneShaders",
"value":{"layers":[],"preset":"none"}})
await StopZoomBlur({})
await StopScreenShake({})Change Project Property with a settings.globalSceneShaders path reaches the same project group. For one dedicated option, Change Game Setting can use a path such as globalSceneShaders.psxColorBits.
Clearing a global stack does not override a room using Custom or Disabled. A restore action also needs a deliberate design: restore the previous configuration if the game already had a normal style, rather than assuming “no effects” is always the correct default.
