View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002745Studio Archive[All Projects] FunctionsPublic2012-04-17 23:422015-07-07 16:49
Assigned ToChris Harrison 
PriorityMediumSeverityC - GeneralReproducibility100%
StatusClosedResolutionWon't Fix 
PlatformOSOS Version
Summary0002745: room_current to get current room ID and room_count to get total number of rooms in the game
DescriptionI found that using "room" equals to "current room id" but it should be more apparent. I would like to suggest a variable alias room_current for this.

I needed to iterate the rooms in order to change their view size with a "for" loop but there wasn't any way to get the total amount of rooms in the game. I would like a room_count function to return the total number of rooms in the game.
GM Version
Attached Files

- Relationships

-  Notes
L (Reporter)
2012-04-18 12:28

It's very easy to iterate through rooms if you just use a while loop.

r = room_first;
while(r != room_last) {
  r = room_next(r);
Chris Harrison (Developer)
2012-05-09 11:05

The next iteration of GM should address these concerns.

For now you can work with room, room_first, room_last and room_exists() to achieve the required functionality.

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker