TileEffectType Detailed Explanation
This page explains how to use Tile Effects (TileEffectType) when using the function Map.putTileEffect
. For more information on Tile Effects, please refer to the link provided below.
🔥 Tile Effects
📗 Basic Tile Effects
TileEffectType.NONE
A tile effect that has no effect.
Example
TileEffectType.IMPASSABLE
A tile effect that does not allow users to pass.
Example
TileEffectType.SPAWN
A tile effect that spawns users to a coordinate when the user enters the map.
Example
🌀 Portal Tile Effects
TileEffectType.PORTAL
A tile effect that moves users to a different specified location area or a different map within the space.
Parameter
Name | Type | Description |
---|---|---|
type | Number | When the type is 0, can set a portal tile that allows players to another map within the Space. When the type is 1, can set a portal tile that allows players to move to another specific location within the map. |
targetMapID | String | The MapID value of the target map |
label | String | The text value to display over the portal |
triggerByTouch | Boolean | When true: activates when contact is made When false: activates when f is pressed |
invisible | Boolean | When true: hide the default portal image When false: show the default portal image |
locationName | String | Value of the target location’s name (If type is 1, this value is a required field.) |
Example
TileEffectType.SPACE_PORTAL
A tile effect that moves participants to another Space.
Parameter
Name | Type | Description |
---|---|---|
label | String | The text value to display over the portal |
targetMapID | String | The SpaceID value of the target Space https://zep.us/play/[Space ID] |
locationName | String | Value of the target location’s name |
triggerByTouch | Boolean | When true: activates when contact is made When false: activates when f is pressed |
invisible | Boolean | When true: hide the default portal image When false: show the default portal image |
Example
🌐 Embed Tile Effects
TileEffectType.EMBED
A tile effect that opens a web link in a new window.
Parameter
Name | Type | Description |
---|---|---|
link | String | Value of the web URL |
align2 | String | Location where to show the window ’popup’, ‘sidebar’, ‘top’, ‘topleft’, ‘topright’, ‘middle’, ‘middleleft’, ‘middleright’, ‘bottom’, ‘bottomleft’, ‘bottomright’ |
label | String | The text value to display over the portal |
triggerByTouch | Boolean | When true: activates when contact is made When false: activates when f is pressed |
invisible | Boolean | When true: hide the default portal image When false: show the default portal image |
Example
TileEffectType.WEB_PORTAL
A tile effect that opens a web link in a new tab.
Parameter
Name | Type | Description |
---|---|---|
link | String | Value of the web URL |
label | String | The text value to display over the portal |
invisible | Boolean | When true: hide the default portal image When false: show the default portal image |
Example
TileEffectType.TILE_EMBED
A tile effect that embeds a web URL in a designated area.
Parameter
Name | Type | Description |
---|---|---|
link | String | Value of the web URL |
width | number | Width of the designated area (number of tiles) |
height | number | Height of the designated area (number of tiles) |
Example
💠 Utility Tile Effects
TileEffectType.PRIVATE_AREA
A tile effect that has a private area effect.
Parameter
Name | Type | Description |
---|---|---|
id | Number | ID Value of the private area |
impassable | Boolean | When true: sets the private area "impassable" |
param1 | String | When param1 is "true", only one person is allowed per tile |
Example
TileEffectType.LOCATION
A tile effect for a map location.
Parameter
Name | Type | Description |
---|---|---|
label | String | The text value to display over the tile |
name | String | Name of the map location |
width | number | Width of the designated area (number of tiles) |
height | number | Height of the designated area (number of tiles) |
Example
TileEffectType.AMBIENT_SOUND
A tile effect for ambient sound.
Parameter
Name | Type | Description |
---|---|---|
link | String | Name of the sound file to play (included in the ZIP file) |
activeDistance | Number | Radius of ambient sound (number of tiles) |
triggerByTouch | Boolean | When true: activates when contact is made When false: activates when f is pressed |
Example
Last updated