Functions for manipulating and retrieving information about scenes. More...
Public Member Functions | |
| void | Load (string filename, boolean persistency) |
| Changes the active scene. The active scene is changed to the one in the specified resource file. | |
| void | Load (boolean persistency) |
| Changes the active scene. The active scene is changed to the currently set entry in the scene list, if it exists (see SceneList.). | |
| void | Change (string scene) |
| Changes the current scene. | |
| void | Change (string category, string scene) |
| Changes the current scene. | |
| void | LoadTileCollisions (string filename, integer tilesetID) |
| Load tile collisions from a resource file. | |
| boolean | AreTileCollisionsLoaded () |
| Returns or whether tile collisions are loaded. | |
| boolean | AddTileset (string tileset) |
| Adds a new tileset into the scene. | |
| void | Restart () |
| Restarts the active scene. | |
| boolean | PropertyExists (string property) |
| Checks if a property exists. | |
| value | GetProperty (string property) |
| Gets a property. | |
| integer | GetLayerCount () |
| Gets the amount of layers in the active scene. | |
| integer | GetLayerIndex (string layerName) |
| Gets the layer index of the layer with the specified name. | |
| string | GetLayerName (integer layerIndex) |
| Gets the name of the specified layer. | |
| boolean | GetLayerVisible (integer layerIndex) |
| Gets the visibility of the specified layer. | |
| decimal | GetLayerOpacity (integer layerIndex) |
| Gets the opacity of the specified layer. | |
| Shader | GetLayerShader (integer layerIndex) |
| Gets the shader of the specified layer. | |
| boolean | GetLayerUsePaletteIndexLines (integer layerIndex) |
| Gets whether the layer is using the global palette index table. | |
| value | GetLayerProperty (integer layerIndex, string property) |
| Gets a property of the specified layer. | |
| boolean | GetLayerExists (integer layerIndex) |
| Gets whether a layer exists. | |
| integer | GetLayerDeformSplitLine (integer layerIndex) |
| Gets the Deform Split Line of the specified layer. | |
| integer | GetLayerDeformOffsetA (integer layerIndex) |
| Gets the tile deform offset above the Deform Split Line of the specified layer. | |
| integer | GetLayerDeformOffsetB (integer layerIndex) |
| Gets the tile deform offset below the Deform Split Line of the specified layer. | |
| boolean | LayerPropertyExists (integer layerIndex, string property) |
| Checks if a property exists in the specified layer. | |
| string | GetName () |
| Gets the name of the active scene. | |
| SCENETYPE | GetType () |
| Gets the type of the active scene. | |
| integer | GetWidth () |
| Gets the width of the scene (in tiles). | |
| integer | GetHeight () |
| Gets the height of the scene (in tiles). | |
| integer | GetLayerWidth (integer layerIndex) |
| Gets the width of a layer index (in tiles). | |
| integer | GetLayerHeight (integer layerIndex) |
| Gets the height of a layer index (in tiles). | |
| decimal | GetLayerOffsetX (integer layerIndex) |
| Gets the X offset of a layer index. | |
| decimal | GetLayerOffsetY (integer layerIndex) |
| Gets the Y offset of a layer index. | |
| integer | GetLayerDrawGroup (integer layerIndex) |
| Gets the draw group of the specified layer. | |
| boolean | GetLayerHorizontalRepeat (integer layerIndex) |
| Gets whether the layer repeats horizontally. | |
| boolean | GetLayerVerticalRepeat (integer layerIndex) |
| Gets whether the layer repeats vertically. | |
| integer | GetTilesetCount () |
| Gets the amount of tilesets in the current scene. | |
| integer | GetTilesetIndex (integer tilesetID) |
| Gets the tileset index for the specified filename. | |
| string | GetTilesetName (Index tilesetIndex) |
| Gets the tileset name for the specified tileset index. | |
| integer | GetTilesetTileCount (integer tilesetID) |
| Gets the tile count for the specified tileset. | |
| integer | GetTilesetFirstTileID (integer tilesetID) |
| Gets the first tile index number for the specified tileset. | |
| integer | GetTilesetPaletteIndex (integer tilesetID) |
| Gets the palette index for the specified tileset. | |
| integer | GetTileWidth () |
| Gets the width of tiles. | |
| integer | GetTileHeight () |
| Gets the height of tiles. | |
| integer | GetTileID (integer layer, number x, number y) |
| Gets the tile's index number at the tile coordinates. | |
| boolean | GetTileFlipX (integer layer, number x, number y) |
| Gets whether the tile at the tile coordinates is flipped horizontally. | |
| boolean | GetTileFlipY (integer layer, number x, number y) |
| Gets whether the tile at the tile coordinates is flipped vertically. | |
| integer | GetDrawGroupCount () |
| Gets the amount of draw groups in the active scene. | |
| boolean | GetDrawGroupEntityDepthSorting (integer drawGroup) |
| Gets if the specified draw group sorts objects by depth. | |
| string | GetCurrentFolder () |
| Gets the current folder of the scene. | |
| string | GetCurrentID () |
| Gets the current ID of the scene. | |
| string | GetCurrentResourceFolder () |
| Gets the current resource folder of the scene. | |
| string | GetCurrentCategory () |
| Gets the current category name of the scene. | |
| integer | GetDebugMode () |
| Gets whether Debug Mode has been turned on in the current scene. | |
| Entity | GetFirstInstance () |
| Gets the first active instance in the scene. | |
| Entity | GetLastInstance () |
| Gets the last active instance in the scene. | |
| integer | GetReservedSlotIDs () |
| Gets the number of reserved slot IDs to account for before creating instances. | |
| integer | GetInstanceCount () |
| Gets the count of instances currently in the scene. | |
| integer | GetStaticInstanceCount () |
| Gets the count of instances currently in the scene. | |
| integer | GetDynamicInstanceCount () |
| Gets the count of instances currently in the scene. | |
| integer | GetTileAnimationEnabled () |
| Gets whether tile animation is enabled. | |
| array | GetTileAnimSequence (integer tileID) |
| Gets the tile IDs of the animation sequence for a tile ID. | |
| array | GetTileAnimSequenceDurations (integer tileID) |
| Gets the frame durations of the animation sequence for a tile ID. | |
| boolean | GetTileAnimSequencePaused (integer tileID) |
| Returns whether a tile ID animation sequence is paused. | |
| decimal | GetTileAnimSequenceSpeed (integer tileID) |
| Gets the speed of a tile ID animation sequence. | |
| integer | GetTileAnimSequenceFrame (integer tileID) |
| Gets the current frame of a tile ID animation sequence. | |
| boolean | IsCurrentEntryValid () |
| Checks if the current entry in the scene list is valid. | |
| boolean | IsUsingFolder (string folder) |
| Checks whether the current scene's folder matches the string to check. | |
| boolean | IsUsingID (string id) |
| Checks whether the current scene's ID matches the string to check. | |
| boolean | IsPaused () |
| Gets whether the scene is paused. | |
| void | SetReservedSlotIDs (integer amount) |
| Sets the number of reserved slot IDs to account for before creating instances. | |
| void | SetDebugMode () |
| Sets whether Debug Mode has been turned on in the current scene. | |
| void | SetTile (integer layer, number cellX, number cellY, integer tileID, boolean flipX, boolean flipY, integer collisionMaskA, integer collisionMaskB) |
| Sets the tile at a position. | |
| void | SetTileCollisionSides (integer layer, number cellX, number cellY, integer collisionMaskA, integer collisionMaskB) |
| Sets the collision of a tile at a position. | |
| void | SetPaused (boolean isPaused) |
| Sets whether the game is paused. When paused, only objects with Entity.Pauseable set to false will continue to Update. | |
| void | SetTileAnimationEnabled (integer isEnabled) |
| Sets whether tile animation is enabled. | |
| void | SetTileAnimSequence (integer tileID, array tileIDs, array frameDurations) |
| Sets an animation sequence for a tile ID. | |
| void | SetTileAnimSequenceFromSprite (integer tileID, integer spriteIndex, integer animationIndex) |
| Sets an animation sequence for a tile ID. | |
| void | SetTileAnimSequencePaused (integer tileID, boolean isPaused) |
| Pauses a tile ID animation sequence. | |
| void | SetTileAnimSequenceSpeed (integer tileID, decimal speed) |
| Changes the speed of a tile ID animation sequence. | |
| void | SetTileAnimSequenceFrame (integer tileID, integer index) |
| Sets the current frame of a tile ID animation sequence. | |
| void | SetTilesetPaletteIndex (integer tilesetID, integer paletteIndex) |
| Sets the palette index of the specified tileset. | |
| void | SetLayerVisible (integer layerIndex, boolean isVisible) |
| Sets the visibility of the specified layer. | |
| void | SetLayerCollidable (integer layerIndex, boolean isVisible) |
| Sets whether the specified layer's tiles can be collided with. | |
| void | SetLayerInternalSize () |
| Do not use this. | |
| void | SetLayerOffsetPosition (integer layerIndex, number offsetX, number offsetY) |
| Sets the camera offset position of the specified layer. | |
| void | SetLayerOffsetX (integer layerIndex, number offsetX) |
| Sets the camera offset X value of the specified layer. | |
| void | SetLayerOffsetY (integer layerIndex, number offsetY) |
| Sets the camera offset Y value of the specified layer. | |
| void | SetLayerDrawGroup (integer layerIndex, integer drawGroup) |
| Sets the draw group of the specified layer. | |
| void | SetLayerDrawBehavior (integer layerIndex, DrawBehavior drawBehavior) |
| Sets the parallax direction of the layer. | |
| void | SetLayerRepeat (integer layerIndex, boolean doesRepeat) |
| Sets whether the specified layer repeats. | |
| void | SetLayerHorizontalRepeat (integer layerIndex, boolean doesRepeat) |
| Sets whether the specified layer repeats horizontally. | |
| void | SetLayerVerticalRepeat (integer layerIndex, boolean doesRepeat) |
| Sets whether the specified layer repeats vertically. | |
| void | SetDrawGroupCount (integer count) |
| Sets the amount of draw groups in the active scene. | |
| void | SetDrawGroupEntityDepthSorting (integer drawGroup, boolean useEntityDepth) |
| Sets the specified draw group to sort objects by depth. | |
| void | SetLayerBlend (integer layerIndex, boolean doBlend, BlendMode blendMode) |
| Sets whether to use color and alpha blending on this layer. | |
| void | SetLayerOpacity (integer layerIndex, decimal opacity) |
| Sets the opacity of the layer. | |
| void | SetLayerShader (integer layerIndex, Shader shader) |
| Sets a shader for the layer. | |
| void | SetLayerUsePaletteIndexLines (integer layerIndex, boolean usePaletteIndexLines) |
| Enables or disables the use of the global palette index table for the specified layer. | |
| void | SetLayerScroll (integer layerIndex, decimal relative, decimal constant) |
| Sets the scroll values of the layer. (Horizontal Parallax = Up/Down values, Vertical Parallax = Left/Right values). | |
| void | SetLayerSetParallaxLinesBegin (integer layerIndex) |
| Begins setup for changing the parallax lines. | |
| void | SetLayerSetParallaxLines (integer lineStart, integer lineEnd, number relative, number constant, boolean canDeform) |
| Set the parallax lines. | |
| void | SetLayerSetParallaxLinesEnd () |
| Ends setup for changing the parallax lines and submits the changes. | |
| void | SetLayerTileDeforms (integer layerIndex, integer deformIndex, number deformA, number deformB) |
| Sets the tile deforms of the layer at the specified index. | |
| void | SetLayerTileDeformSplitLine (integer layerIndex, number deformPosition) |
| Sets the position of the Deform Split Line. | |
| void | SetLayerTileDeformOffsets (integer layerIndex, number deformAOffset, number deformBOffset) |
| Sets the position of the Deform Split Line. | |
| void | SetLayerDeformOffsetA (integer layerIndex, number deformA) |
| Sets the tile deform offset above the Deform Split Line of the layer. | |
| void | SetLayerDeformOffsetB (integer layerIndex, number deformA) |
| Sets the tile deform offset below the Deform Split Line of the layer. | |
| void | SetLayerCustomScanlineFunction (integer layerIndex, function function) |
| Sets the function to be used for generating custom tile scanlines. | |
| void | SetTileScanline (integer scanline, number srcX, number srcY, number deltaX, number deltaY, decimal opacity, number maxHorzCells, number maxVertCells) |
| Sets the tile scanline (for use only inside a Custom Scanline Function). | |
| void | SetLayerCustomRenderFunction (integer layerIndex, function function) |
| Sets the function to be used for rendering a specific layer. | |
| void | SetObjectViewRender (integer viewIndex, boolean enableViewRender) |
| Sets whether entities can render on the specified view. | |
| void | SetTileViewRender (integer viewIndex, boolean enableViewRender) |
| Sets whether tiles can render on the specified view. | |
Functions for manipulating and retrieving information about scenes.
| boolean Scene.AddTileset | ( | string | tileset | ) |
Adds a new tileset into the scene.
| tileset | Path of tileset to load. |
| boolean Scene.AreTileCollisionsLoaded | ( | ) |
Returns or whether tile collisions are loaded.
| void Scene.Change | ( | string | category, |
| string | scene ) |
Changes the current scene.
This does not load the scene. You must call Scene.Load.
| category | Category name. If this is not valid, this function does nothing. |
| scene | Scene name. If the scene name is not found but the category name is, the first scene in the category is used. |
| void Scene.Change | ( | string | scene | ) |
Changes the current scene.
This does not load the scene. You must call Scene.Load.
| scene | Scene name in the global category. If the scene name is not found, the first scene in the category is used. |
| string Scene.GetCurrentCategory | ( | ) |
Gets the current category name of the scene.
| string Scene.GetCurrentFolder | ( | ) |
Gets the current folder of the scene.
| string Scene.GetCurrentID | ( | ) |
Gets the current ID of the scene.
| string Scene.GetCurrentResourceFolder | ( | ) |
Gets the current resource folder of the scene.
| integer Scene.GetDebugMode | ( | ) |
Gets whether Debug Mode has been turned on in the current scene.
| integer Scene.GetDrawGroupCount | ( | ) |
Gets the amount of draw groups in the active scene.
| boolean Scene.GetDrawGroupEntityDepthSorting | ( | integer | drawGroup | ) |
Gets if the specified draw group sorts objects by depth.
| drawGroup | Number between 0 to the result of Scene.GetDrawGroupCount. |
| integer Scene.GetDynamicInstanceCount | ( | ) |
Gets the count of instances currently in the scene.
| Entity Scene.GetFirstInstance | ( | ) |
Gets the first active instance in the scene.
| integer Scene.GetHeight | ( | ) |
Gets the height of the scene (in tiles).
| integer Scene.GetInstanceCount | ( | ) |
Gets the count of instances currently in the scene.
| Entity Scene.GetLastInstance | ( | ) |
Gets the last active instance in the scene.
| integer Scene.GetLayerCount | ( | ) |
Gets the amount of layers in the active scene.
| integer Scene.GetLayerDeformOffsetA | ( | integer | layerIndex | ) |
Gets the tile deform offset above the Deform Split Line of the specified layer.
| layerIndex | Index of layer. |
| integer Scene.GetLayerDeformOffsetB | ( | integer | layerIndex | ) |
Gets the tile deform offset below the Deform Split Line of the specified layer.
| layerIndex | Index of layer. |
| integer Scene.GetLayerDeformSplitLine | ( | integer | layerIndex | ) |
Gets the Deform Split Line of the specified layer.
| layerIndex | Index of layer. |
| integer Scene.GetLayerDrawGroup | ( | integer | layerIndex | ) |
Gets the draw group of the specified layer.
| layerIndex | Index of layer. |
| boolean Scene.GetLayerExists | ( | integer | layerIndex | ) |
Gets whether a layer exists.
| layerIndex | Index of layer. |
| integer Scene.GetLayerHeight | ( | integer | layerIndex | ) |
Gets the height of a layer index (in tiles).
| layerIndex | Index of layer. |
| boolean Scene.GetLayerHorizontalRepeat | ( | integer | layerIndex | ) |
Gets whether the layer repeats horizontally.
| layerIndex | Index of layer. |
| integer Scene.GetLayerIndex | ( | string | layerName | ) |
Gets the layer index of the layer with the specified name.
| layerName | Name of the layer to find. |
| string Scene.GetLayerName | ( | integer | layerIndex | ) |
Gets the name of the specified layer.
| layerIndex | Index of layer. |
| decimal Scene.GetLayerOffsetX | ( | integer | layerIndex | ) |
Gets the X offset of a layer index.
| layerIndex | Index of layer. |
| decimal Scene.GetLayerOffsetY | ( | integer | layerIndex | ) |
Gets the Y offset of a layer index.
| layerIndex | Index of layer. |
| decimal Scene.GetLayerOpacity | ( | integer | layerIndex | ) |
Gets the opacity of the specified layer.
| layerIndex | Index of layer. |
| value Scene.GetLayerProperty | ( | integer | layerIndex, |
| string | property ) |
Gets a property of the specified layer.
| layerIndex | Index of layer. |
| property | Name of property. |
| Shader Scene.GetLayerShader | ( | integer | layerIndex | ) |
Gets the shader of the specified layer.
| layerIndex | Index of layer. |
| boolean Scene.GetLayerUsePaletteIndexLines | ( | integer | layerIndex | ) |
Gets whether the layer is using the global palette index table.
| layerIndex | Index of layer. |
| boolean Scene.GetLayerVerticalRepeat | ( | integer | layerIndex | ) |
Gets whether the layer repeats vertically.
| layerIndex | Index of layer. |
| boolean Scene.GetLayerVisible | ( | integer | layerIndex | ) |
Gets the visibility of the specified layer.
| layerIndex | Index of layer. |
| integer Scene.GetLayerWidth | ( | integer | layerIndex | ) |
Gets the width of a layer index (in tiles).
| layerIndex | Index of layer. |
| string Scene.GetName | ( | ) |
Gets the name of the active scene.
| value Scene.GetProperty | ( | string | property | ) |
Gets a property.
| property | Name of property. |
| integer Scene.GetReservedSlotIDs | ( | ) |
Gets the number of reserved slot IDs to account for before creating instances.
| integer Scene.GetStaticInstanceCount | ( | ) |
Gets the count of instances currently in the scene.
| integer Scene.GetTileAnimationEnabled | ( | ) |
Gets whether tile animation is enabled.
| array Scene.GetTileAnimSequence | ( | integer | tileID | ) |
Gets the tile IDs of the animation sequence for a tile ID.
| tileID | Which tile ID. |
| array Scene.GetTileAnimSequenceDurations | ( | integer | tileID | ) |
Gets the frame durations of the animation sequence for a tile ID.
| tileID | Which tile ID. |
| integer Scene.GetTileAnimSequenceFrame | ( | integer | tileID | ) |
Gets the current frame of a tile ID animation sequence.
| tileID | The tile ID. |
| boolean Scene.GetTileAnimSequencePaused | ( | integer | tileID | ) |
Returns whether a tile ID animation sequence is paused.
| tileID | The tile ID. |
| decimal Scene.GetTileAnimSequenceSpeed | ( | integer | tileID | ) |
Gets the speed of a tile ID animation sequence.
| tileID | The tile ID. |
| boolean Scene.GetTileFlipX | ( | integer | layer, |
| number | x, | ||
| number | y ) |
Gets whether the tile at the tile coordinates is flipped horizontally.
| layer | Index of the layer |
| x | X position (in tiles) of the tile |
| y | Y position (in tiles) of the tile |
| boolean Scene.GetTileFlipY | ( | integer | layer, |
| number | x, | ||
| number | y ) |
Gets whether the tile at the tile coordinates is flipped vertically.
| layer | Index of the layer |
| x | X position (in tiles) of the tile |
| y | Y position (in tiles) of the tile |
| integer Scene.GetTileHeight | ( | ) |
Gets the height of tiles.
| integer Scene.GetTileID | ( | integer | layer, |
| number | x, | ||
| number | y ) |
Gets the tile's index number at the tile coordinates.
| layer | Index of the layer |
| x | X position (in tiles) of the tile |
| y | Y position (in tiles) of the tile |
| integer Scene.GetTilesetCount | ( | ) |
Gets the amount of tilesets in the current scene.
| integer Scene.GetTilesetFirstTileID | ( | integer | tilesetID | ) |
Gets the first tile index number for the specified tileset.
| tilesetID | The tileset index. |
| integer Scene.GetTilesetIndex | ( | integer | tilesetID | ) |
Gets the tileset index for the specified filename.
| tilesetID | The tileset index. |
| string Scene.GetTilesetName | ( | Index | tilesetIndex | ) |
Gets the tileset name for the specified tileset index.
| tilesetIndex | The tileset index. |
| integer Scene.GetTilesetPaletteIndex | ( | integer | tilesetID | ) |
Gets the palette index for the specified tileset.
| tilesetID | The tileset index. |
| integer Scene.GetTilesetTileCount | ( | integer | tilesetID | ) |
Gets the tile count for the specified tileset.
| tilesetID | The tileset index. |
| integer Scene.GetTileWidth | ( | ) |
Gets the width of tiles.
| SCENETYPE Scene.GetType | ( | ) |
Gets the type of the active scene.
| integer Scene.GetWidth | ( | ) |
Gets the width of the scene (in tiles).
| boolean Scene.IsCurrentEntryValid | ( | ) |
Checks if the current entry in the scene list is valid.
| boolean Scene.IsPaused | ( | ) |
Gets whether the scene is paused.
| boolean Scene.IsUsingFolder | ( | string | folder | ) |
Checks whether the current scene's folder matches the string to check.
| folder | Folder name to compare. |
| boolean Scene.IsUsingID | ( | string | id | ) |
Checks whether the current scene's ID matches the string to check.
| id | ID to compare. |
| boolean Scene.LayerPropertyExists | ( | integer | layerIndex, |
| string | property ) |
Checks if a property exists in the specified layer.
| layerIndex | Index of layer. |
| property | Name of property to check. |
| void Scene.Load | ( | boolean | persistency | ) |
Changes the active scene. The active scene is changed to the currently set entry in the scene list, if it exists (see SceneList.).
| persistency | Whether the scene should load with persistency. |
| void Scene.Load | ( | string | filename, |
| boolean | persistency ) |
Changes the active scene. The active scene is changed to the one in the specified resource file.
| filename | Filename of scene. |
| persistency | Whether the scene should load with persistency. |
| void Scene.LoadTileCollisions | ( | string | filename, |
| integer | tilesetID ) |
Load tile collisions from a resource file.
| filename | Filename of tile collision file. |
| tilesetID | Tileset to load tile collisions for. |
| boolean Scene.PropertyExists | ( | string | property | ) |
Checks if a property exists.
| property | Name of property to check. |
| void Scene.SetDrawGroupCount | ( | integer | count | ) |
| void Scene.SetDrawGroupEntityDepthSorting | ( | integer | drawGroup, |
| boolean | useEntityDepth ) |
Sets the specified draw group to sort objects by depth.
| drawGroup | Number between 0 to the result of Scene.GetDrawGroupCount. |
| useEntityDepth | Whether to sort objects by depth. |
| void Scene.SetLayerBlend | ( | integer | layerIndex, |
| boolean | doBlend, | ||
| BlendMode | blendMode ) |
Sets whether to use color and alpha blending on this layer.
| layerIndex | Index of layer. |
| doBlend | Whether to use blending. |
| blendMode | The desired blend mode. |
| void Scene.SetLayerCollidable | ( | integer | layerIndex, |
| boolean | isVisible ) |
Sets whether the specified layer's tiles can be collided with.
| layerIndex | Index of layer. |
| isVisible | Whether the layer can be collided with. |
| void Scene.SetLayerCustomRenderFunction | ( | integer | layerIndex, |
| function | function ) |
Sets the function to be used for rendering a specific layer.
| layerIndex | Index of layer. |
| function | Function to call to render the layer. (Use null to reset functionality.) |
| void Scene.SetLayerCustomScanlineFunction | ( | integer | layerIndex, |
| function | function ) |
Sets the function to be used for generating custom tile scanlines.
| layerIndex | Index of layer. |
| function | Function to be used before tile drawing for generating scanlines. (Use null to reset functionality.) |
| void Scene.SetLayerDeformOffsetA | ( | integer | layerIndex, |
| number | deformA ) |
Sets the tile deform offset above the Deform Split Line of the layer.
| layerIndex | Index of layer. |
| deformA | Deform value above the Deform Split Line. |
| void Scene.SetLayerDeformOffsetB | ( | integer | layerIndex, |
| number | deformA ) |
Sets the tile deform offset below the Deform Split Line of the layer.
| layerIndex | Index of layer. |
| deformA | Deform value below the Deform Split Line. |
| void Scene.SetLayerDrawBehavior | ( | integer | layerIndex, |
| DrawBehavior | drawBehavior ) |
Sets the parallax direction of the layer.
| layerIndex | Index of layer. |
| drawBehavior | The draw behavior. |
| void Scene.SetLayerDrawGroup | ( | integer | layerIndex, |
| integer | drawGroup ) |
Sets the draw group of the specified layer.
| layerIndex | Index of layer. |
| drawGroup | Number between 0 to the result of Scene.GetDrawGroupCount. |
| void Scene.SetLayerHorizontalRepeat | ( | integer | layerIndex, |
| boolean | doesRepeat ) |
Sets whether the specified layer repeats horizontally.
| layerIndex | Index of layer. |
| doesRepeat | Whether the layer repeats horizontally. |
| void Scene.SetLayerOffsetPosition | ( | integer | layerIndex, |
| number | offsetX, | ||
| number | offsetY ) |
Sets the camera offset position of the specified layer.
| layerIndex | Index of layer. |
| offsetX | Offset X position. |
| offsetY | Offset Y position. |
| void Scene.SetLayerOffsetX | ( | integer | layerIndex, |
| number | offsetX ) |
Sets the camera offset X value of the specified layer.
| layerIndex | Index of layer. |
| offsetX | Offset X position. |
| void Scene.SetLayerOffsetY | ( | integer | layerIndex, |
| number | offsetY ) |
Sets the camera offset Y value of the specified layer.
| layerIndex | Index of layer. |
| offsetY | Offset Y position. |
| void Scene.SetLayerOpacity | ( | integer | layerIndex, |
| decimal | opacity ) |
Sets the opacity of the layer.
| layerIndex | Index of layer. |
| opacity | Opacity from 0.0 to 1.0. |
| void Scene.SetLayerRepeat | ( | integer | layerIndex, |
| boolean | doesRepeat ) |
Sets whether the specified layer repeats.
| layerIndex | Index of layer. |
| doesRepeat | Whether the layer repeats. |
| void Scene.SetLayerScroll | ( | integer | layerIndex, |
| decimal | relative, | ||
| decimal | constant ) |
Sets the scroll values of the layer. (Horizontal Parallax = Up/Down values, Vertical Parallax = Left/Right values).
| layerIndex | Index of layer. |
| relative | How much to move the layer relative to the camera. (0.0 = no movement, 1.0 = moves opposite to speed of camera, 2.0 = moves twice the speed opposite to camera) |
| constant | How many pixels to move the layer per frame. |
| void Scene.SetLayerSetParallaxLines | ( | integer | lineStart, |
| integer | lineEnd, | ||
| number | relative, | ||
| number | constant, | ||
| boolean | canDeform ) |
Set the parallax lines.
| lineStart | Start line. |
| lineEnd | End line. |
| relative | How much to move the scroll line relative to the camera. (0.0 = no movement, 1.0 = moves opposite to speed of camera, 2.0 = moves twice the speed opposite to camera) |
| constant | How many pixels to move the layer per frame. |
| canDeform | Whether the parallax lines can be deformed. |
| void Scene.SetLayerSetParallaxLinesBegin | ( | integer | layerIndex | ) |
Begins setup for changing the parallax lines.
| layerIndex | Index of layer. |
| void Scene.SetLayerShader | ( | integer | layerIndex, |
| Shader | shader ) |
Sets a shader for the layer.
| layerIndex | Index of layer. |
| shader | The shader, or null to unset the shader. |
| void Scene.SetLayerTileDeformOffsets | ( | integer | layerIndex, |
| number | deformAOffset, | ||
| number | deformBOffset ) |
Sets the position of the Deform Split Line.
| layerIndex | Index of layer. |
| deformAOffset | Offset for the deforms above the Deform Split Line. |
| deformBOffset | Offset for the deforms below the Deform Split Line. |
| void Scene.SetLayerTileDeforms | ( | integer | layerIndex, |
| integer | deformIndex, | ||
| number | deformA, | ||
| number | deformB ) |
Sets the tile deforms of the layer at the specified index.
| layerIndex | Index of layer. |
| deformIndex | Index of deform value. |
| deformA | Deform value above the Deform Split Line. |
| deformB | Deform value below the Deform Split Line. |
| void Scene.SetLayerTileDeformSplitLine | ( | integer | layerIndex, |
| number | deformPosition ) |
Sets the position of the Deform Split Line.
| layerIndex | Index of layer. |
| deformPosition | The position on screen where the Deform Split Line should be. (Y when horizontal parallax, X when vertical.) |
| void Scene.SetLayerUsePaletteIndexLines | ( | integer | layerIndex, |
| boolean | usePaletteIndexLines ) |
Enables or disables the use of the global palette index table for the specified layer.
| layerIndex | Index of layer. |
| usePaletteIndexLines | Whether the layer is using the global palette index table. |
| void Scene.SetLayerVerticalRepeat | ( | integer | layerIndex, |
| boolean | doesRepeat ) |
Sets whether the specified layer repeats vertically.
| layerIndex | Index of layer. |
| doesRepeat | Whether the layer repeats vertically. |
| void Scene.SetLayerVisible | ( | integer | layerIndex, |
| boolean | isVisible ) |
Sets the visibility of the specified layer.
| layerIndex | Index of layer. |
| isVisible | Whether the layer can be seen. |
| void Scene.SetObjectViewRender | ( | integer | viewIndex, |
| boolean | enableViewRender ) |
Sets whether entities can render on the specified view.
| viewIndex | Index of the view. |
| enableViewRender | Whether entities can render on the specified view. |
| void Scene.SetPaused | ( | boolean | isPaused | ) |
Sets whether the game is paused. When paused, only objects with Entity.Pauseable set to false will continue to Update.
| isPaused | Whether the scene is paused. |
| void Scene.SetReservedSlotIDs | ( | integer | amount | ) |
Sets the number of reserved slot IDs to account for before creating instances.
| amount | How many reserved slot IDs to use. |
| void Scene.SetTile | ( | integer | layer, |
| number | cellX, | ||
| number | cellY, | ||
| integer | tileID, | ||
| boolean | flipX, | ||
| boolean | flipY, | ||
| integer | collisionMaskA, | ||
| integer | collisionMaskB ) |
Sets the tile at a position.
| layer | Layer index. |
| cellX | Tile cell X. |
| cellY | Tile cell Y. |
| tileID | Tile ID. |
| flipX | Whether to flip the tile horizontally. |
| flipY | Whether to flip the tile vertically. |
| collisionMaskA | Collision mask to use for the tile on Plane A. (0: No collision, 1: Top-side collision only, 2: Left-right-bottom-side collision only, 3: All-side collision) |
| collisionMaskB | Collision mask to use for the tile on Plane B. (0: No collision, 1: Top-side collision only, 2: Left-right-bottom-side collision only, 3: All-side collision) |
| void Scene.SetTileAnimationEnabled | ( | integer | isEnabled | ) |
Sets whether tile animation is enabled.
| isEnabled | 0 disables tile animation, 1 enables it, and 2 makes tiles animate even if the scene is paused. |
| void Scene.SetTileAnimSequence | ( | integer | tileID, |
| array | tileIDs, | ||
| array | frameDurations ) |
Sets an animation sequence for a tile ID.
| tileID | Which tile ID to add an animated sequence to. |
| tileIDs | Tile ID list. |
| frameDurations | Frame duration list. |
| void Scene.SetTileAnimSequenceFrame | ( | integer | tileID, |
| integer | index ) |
Sets the current frame of a tile ID animation sequence.
| tileID | The tile ID. |
| index | The frame index. |
| void Scene.SetTileAnimSequenceFromSprite | ( | integer | tileID, |
| integer | spriteIndex, | ||
| integer | animationIndex ) |
Sets an animation sequence for a tile ID.
| tileID | Which tile ID to add an animated sequence to. |
| spriteIndex | Sprite index. (null to disable) |
| animationIndex | Animation index in sprite. |
| void Scene.SetTileAnimSequencePaused | ( | integer | tileID, |
| boolean | isPaused ) |
Pauses a tile ID animation sequence.
| tileID | The tile ID. |
| isPaused | Whether the animation is paused. |
| void Scene.SetTileAnimSequenceSpeed | ( | integer | tileID, |
| decimal | speed ) |
Changes the speed of a tile ID animation sequence.
| tileID | The tile ID. |
| speed | The frame speed. |
| void Scene.SetTileCollisionSides | ( | integer | layer, |
| number | cellX, | ||
| number | cellY, | ||
| integer | collisionMaskA, | ||
| integer | collisionMaskB ) |
Sets the collision of a tile at a position.
| layer | Layer index. |
| cellX | Tile cell X. |
| cellY | Tile cell Y. |
| collisionMaskA | Collision mask to use for the tile on Plane A. (0: No collision, 1: Top-side collision only, 2: Left-right-bottom-side collision only, 3: All-side collision) |
| collisionMaskB | Collision mask to use for the tile on Plane B. (0: No collision, 1: Top-side collision only, 2: Left-right-bottom-side collision only, 3: All-side collision) |
| void Scene.SetTileScanline | ( | integer | scanline, |
| number | srcX, | ||
| number | srcY, | ||
| number | deltaX, | ||
| number | deltaY, | ||
| decimal | opacity, | ||
| number | maxHorzCells, | ||
| number | maxVertCells ) |
Sets the tile scanline (for use only inside a Custom Scanline Function).
| scanline | Index of scanline to edit. |
| srcX | |
| srcY | |
| deltaX | |
| deltaY | |
| opacity | |
| maxHorzCells | |
| maxVertCells |
| void Scene.SetTilesetPaletteIndex | ( | integer | tilesetID, |
| integer | paletteIndex ) |
Sets the palette index of the specified tileset.
| tilesetID | The tileset index. |
| paletteIndex | The palette index. |
| void Scene.SetTileViewRender | ( | integer | viewIndex, |
| boolean | enableViewRender ) |
Sets whether tiles can render on the specified view.
| viewIndex | Index of the view. |
| enableViewRender | Whether tiles can render on the specified view. |