This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
groups [2017/07/17 11:23] – justin | groups [2023/01/31 21:25] – justin | ||
---|---|---|---|
Line 10: | Line 10: | ||
Currently | Currently | ||
- | ====Hiding Entities==== | + | =====Hiding Entities===== |
You can use groups as a way to hide a set of entities in the [[Map Editor]], for example to hide the roof of a house to allow easier access for editing the house' | You can use groups as a way to hide a set of entities in the [[Map Editor]], for example to hide the roof of a house to allow easier access for editing the house' | ||
- | ====Group Animations==== | + | =====Group Animations===== |
The [[Play Group Animation]] scripting function allows you to trigger a particular animation simultaneously for a group of entities, for example to raise spikes from a room full of trap tiles or to trigger a cheering animation on a crowd of NPCs. | The [[Play Group Animation]] scripting function allows you to trigger a particular animation simultaneously for a group of entities, for example to raise spikes from a room full of trap tiles or to trigger a cheering animation on a crowd of NPCs. | ||
+ | |||
+ | =====Auto-Hiding Entities at Game Time===== | ||
+ | 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 center round info 100%> | ||
+ | Please note that the auto-hiding feature will not work if your game has Fog of War enabled. When using Fog of War, you'll need to manually hide and show groups using the [[Hide Group]] and [[Show Group]] scripting functions. | ||
+ | </ | ||
+ | |||
+ | <WRAP group> | ||
+ | <WRAP column 45%> | ||
+ | To use this feature, you would add any walkable tiles on the lower floor to a group (as an example, say " | ||
+ | </ | ||
+ | |||
+ | <WRAP column> | ||
+ | {{: | ||
+ | </ | ||
+ | </ | ||
~~NOTOC~~ | ~~NOTOC~~ |