• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

[Solved] How to get the name of next room ?

As title says I want to know the next room name

I tried

- room_next(room)
- room + 1

still no luck

Edit: room_get_name(room + 1) works fine
 
Last edited:
T

trentallain

Guest
As title says I want to know the next room name

I tried

- room_next(room)
- room + 1

still no luck

Edit: room_get_name(room + 1) works fine
You could also have a list of all your rooms. This might be more effective because if you have levels you don't want the next room to be a level select (for example)
 

Bart

WiseBart
To make sure that you end up with the right index it's better to use room_next. It should work.
When you use (room + 1) you quite happily assume that rooms are numbered consecutively. But that may not always be the case or could change in the future.
 
Top