N
Noobc0re
Guest
I have a number that happens in one room, then in the next room I need to show it.
How do I bring it over?
How do I bring it over?
global.value = 10;
That doesn't work though.Global variables are the easiest way to do this. If you are using gml, you can simply put
global.
infront of your variable name. For example:
[ROOM]global.value = 10; [/ROOM]
This will maintain its value throughout the life of your game.
Here's one of the most important rules when asking for help: Never say "doesn't work". Whenever you want to say that, it's a clear sign that you have to provide a substantial additional amount of information.That doesn't work though.
I am having the same issue. However despite following the information on this page, I can't use gml tips as this is a DnD game. I have tried using global variables and whenever i need to use them it comes up with, ERROR, global. has not been set before reading it, despite me setting and checking the global variable.I have a number that happens in one room, then in the next room I need to show it.
How do I bring it over?