*HELP* -- How to put Data in a GUI file from a Lua Module? (SOLVED)

Hi there, i have a problem…i had created a Lua module containing a data inside of it. what i want is to display that data in a GUI file…but i cant do it…i tried many times but still failed…this is what i did:

– In the project explorer, i created a folder named “GameData”…
– Inside of GameData folder, i created a Lua module File named “heroCurLevel”
– Inside of module, i put a variable named “Curlvl” and i put its value to
"Zero (0)"
– In main folder, i created a GO named “level.go” and put a GUI file named “level.gui”
– in my “main.collection”, i added level.go

what i want is that the game will display the current level the player was reached. so that he/she will aware of his/her current level in the game…and also i almost forgot, i use collection proxies in my game…each proxy has its own collection…every time the player finish a level, the level.gui will automatically update its value to what the player’s current level in the game…please help me…i know its easy for you guys but for me that is new to game developing,…i dont have enough exp yet so i need you help…thanks!

1 Like

Attach a gui_script to the gui scene, and access your data from the gui_script.

1 Like

oh…i idint see that property of gui file,…thank you!..you’re a life saver sir!.. :’)

2 Likes