I couldn't seem to find a tutorial or a bit in the manual to help with this.
Basically I have an item that I want the player to be able to pick up and place in his inventory.
However I have different levels in different layouts currently.
Is there a way for the variable that's attached to the item to persist through to other layouts the player may travel to, or is there some other way to do that?
Thanks in advance!
Hexxiss - i think someone in another thread mentioned that global variables will persist in different layouts that that event sheet is attached too.
as long as you don't have events that reset the global variable on the start of the layout or some where in the event sheet (unless you want something to reset them).
Develop games in your browser. Powerful, performant & highly capable.
There is 'global' switch for every object, turn that on and object will persist through layout keeping it's variables and stuff. :)
EDIT: wretchedshark For some reason I read question was about global variables as well the first time :)
Ok ive found my problem using set text to global variable to see which one wasnt working and it turn out to be the Npc 2 object variable Is there anyway to keep it throughout the next layouts ?
Edit: its solved i just had to use global var instead of object var. but still my question remain is it possible to define where and how many layout an object variable is and is there a way to keep some global var and reset the other i do not see that function anywhere