TileEffectType Detailed Explanation
Last updated
Last updated
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
A tile effect that has no effect.
Example
A tile effect that does not allow users to pass.
Example
A tile effect that spawns users to a coordinate when the user enters the map.
Example
A tile effect that moves users to a different specified location area or a different map within the space.
Parameter
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
A tile effect that moves participants to another Space.
Parameter
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
A tile effect that opens a web link in a new window.
Parameter
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
A tile effect that opens a web link in a new tab.
Parameter
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
A tile effect that embeds a web URL in a designated area.
Parameter
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
A tile effect that has a private area effect.
Parameter
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
A tile effect for a map location.
Parameter
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
A tile effect for ambient sound.
Parameter
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