Tile - YTriggerZoneBase - Color – Ylands
Jump to navigation
Jump to search
(Created page with "[[Image:{{PAGENAME}}.png]] *Allows to '''get''' / '''set''' '''color''' of selected zone. =Notes= *Supported zones are: Ylands Game logic - Impassable barrier|'''Impassable...") |
(Changed to Environment and added a description for each tile) |
||
Line 1: | Line 1: | ||
[[Image:{{PAGENAME}}.png]] | [[Image:{{PAGENAME}}.png]] | ||
*Allows to '''get''' / '''set''' '''color''' of selected zone. | *Allows to '''get''' / '''set''' '''color''' of selected zone. | ||
**Get Color will return a [[Ylands Tile - Color literal|'''Color literal''']]. If written to console or log, the output will be in the format "[1,1,1,1]". These represent [Red, Green, Blue, Alpha] and each number can be between 0 (least intensity) and 1 (most intensity). In this case, Alpha represents the transparency of the zone. | |||
**Set Color will overwrite the current zone color and set the new zone color to the color literal or [[Ylands Tile - Color new|Custom Color]]. A [[Ylands_Tile_-_Entity_colors|Get Color Tile]] can also be used. | |||
=Notes= | =Notes= | ||
*Supported zones are: [[Ylands Game logic - Impassable barrier|'''Impassable barrier''']], [[Ylands Game logic - | *Supported zones are: [[Ylands Game logic - Impassable barrier|'''Impassable barrier''']], [[Ylands Game logic - Environment|'''Environment''']], [[Ylands Game logic - Play area|'''Play Area''']], [[Ylands Game logic - Trigger zone|'''Trigger Zone''']] | ||
Revision as of 05:18, 13 November 2020
File:Tile - YTriggerZoneBase - Color.png
- Allows to get / set color of selected zone.
- Get Color will return a Color literal. If written to console or log, the output will be in the format "[1,1,1,1]". These represent [Red, Green, Blue, Alpha] and each number can be between 0 (least intensity) and 1 (most intensity). In this case, Alpha represents the transparency of the zone.
- Set Color will overwrite the current zone color and set the new zone color to the color literal or Custom Color. A Get Color Tile can also be used.
Notes
- Supported zones are: Impassable barrier, Environment, Play Area, Trigger Zone