Projects
AGS Engine | Rooms | Count Stuff |
---|---|---|
Vincent | Well, I have notice that there is: [b]Game.CharacterCount, Room.ObjectCount, Game.MouseCursorCount, Game.InventoryItemCount, Game.GUICount, Game.FontCount, Game.DialogCount, Game.AudioClipCount[/b] but nothing regarding: [b]Room.HotspotCount[/b] or [b]Room.RegionCount[/b]. Because I would like to do something like this so far. [code] for (int i = 0; i < Room.HotspotCount; i++) { hotspot[i].Enabled = false; } for (int i = 0; i < Room.RegionCount; i++) { region[i].Enabled = false; }[/code] | |
Crimson Wizard | That's because AGS does not count them. There is no way to add hotspot or remove hotspot, all areas (hotspots, regions and walkable areas) are always created in every room. There is always 50 hotspots, 15 walkable areas and 16 regions. | |
Vincent | I understand, thanks for the clarification CW! |