Rûn Objects: The Scene
The objects for what the player sees and hears: the camera, the clock and the sky, the weather and fog, the lights and the look, and sound. The full list of their methods is on Rûn Programs; event scripts have the matching verbs (camera, time, sky, weather, light, music, sound) on the Rûn Verb Index.
Camera
Camera.PanTo(x, y [, seconds]), Camera.Follow(), Camera.Zoom(mult [, seconds]) and Camera.Shake([hard [, secs]]) move the view in a running game. They refuse in the editor, where the view is the editor's own, and they refuse inside a rule block, which has to answer at once: raise a flag there and let an event do the camera work.
Time and Sky
Time.Scale(rate) runs the clock faster or slower, Time.Stop() holds it and Time.Resume() lets it run; Time.scale reads the rate and Time.frozen whether it is held. Sky.hour is the hour of the day, 0 to 24, and can be set; Sky.SetHour(h) does the same. Sky.Set(property, value) and Sky.Get(property) reach every sky and cloud property; Sky.Properties() lists them.
number h = Sky.hour
print(h >= 0 && h < 24)
Sky.SetHour(6)
print(round(Sky.hour))on
6Weather and Fog
Weather.Set(type) changes the weather at once and Weather.Change(type, seconds) over time; Weather.Now() says which it is. Fog.Use(preset [, seconds]) blends to a fog preset and Fog.Release() gives the map's own back.
Light and Look
Light.Group(group, action [, level [, seconds]]) switches, dims, flickers or fades every light of a group at once. Light.Player(field [, value]) reads or sets her own light. Look.Use(look [, seconds]) changes the shader effect, and Look.Pulse(strength) throbs the edges of the screen once.
Audio and Sound
Audio.Play(name, file [, loop, volume, seconds]) plays a sound under a name you choose, and Audio.Stop(name [, seconds]) stops it. Audio.Track(track) plays layered music and Audio.Tension(level) moves it. See Sound and Music.