User Tools

Site Tools


groups

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
groups [2017/07/17 12:05]
justin
groups [2017/07/17 12:12] (current)
justin
Line 17: Line 17:
  
 =====Auto-Hiding Entities at Game Time===== =====Auto-Hiding Entities at Game Time=====
 +While mostly an experimental feature at this point, groups can also be used as a way to have the game automatically hide tile layers based on the current location of the player character. This is useful in cases where there is a building with multiple floors and you'd like the tiles and objects of upper floors to be hidden when the player is on a lower floor.
 <WRAP group> <WRAP group>
-<​WRAP ​half column>​ +<WRAP column ​45%
-While mostly an experimental feature at this pointgroups can also be used as a way to have the game automatically hide tile layers based on the current location of the player character. This is useful in cases where there is building with multiple floors ​and you'd like the tiles and objects of upper floors to be hidden when the player ​is on lower floor.+To accomplish ​this, you would add any walkable tiles on the lower floor to group (as an example, say "​floor1"​), ​and then add any tiles and objects ​that are part of any upper floors to another group, using the special "​-hide"​ suffix. Following our example, this upper floor group should ​be named "​floor1-hide"​. Whenever ​the player ​character walks onto tile in the "​floor1"​ group, any entity in the corresponding "​floor1-hide"​ group will be automatically hidden.
 </​WRAP>​ </​WRAP>​
  
-<​WRAP ​half column>+<WRAP column>
 {{:​wiki:​auto_hiding_groups.gif?​nolink|}} {{:​wiki:​auto_hiding_groups.gif?​nolink|}}
 </​WRAP>​ </​WRAP>​
 </​WRAP>​ </​WRAP>​
- 
-To accomplish this, you would add any walkable tiles on the lower floor to a group (as an example, say "​floor1"​),​ and then add any tiles and objects that are part of any upper floors to another group, using the special "​-hide"​ suffix. Following our example, this upper floor group should be named "​floor1-hide"​. Whenever the player character walks onto a tile in the "​floor1"​ group, any entity in the corresponding "​floor1-hide"​ group will be automatically hidden. 
  
 ~~NOTOC~~ ~~NOTOC~~
groups.txt · Last modified: 2017/07/17 12:12 by justin