Rexzqy
Member
Right now I am implementing a temperature system, and the thermometer item could show the temperature right now. However, it wont update and would just show the default value even though the value changes. Any help is greatly appreciated!
ds_item_info[# z ,i++] = "The temp now is "+string(temp)+"C" //showing the current temperature
temp = global.temperature; // in create event
global.temperature = 20;
and i set up a function where if u press key 1 it would increase global.temperature by 1, and through debug message it shows me that the global temperature is going up. Any thoughts on how to fix this?
ds_item_info[# z ,i++] = "The temp now is "+string(temp)+"C" //showing the current temperature
temp = global.temperature; // in create event
global.temperature = 20;
and i set up a function where if u press key 1 it would increase global.temperature by 1, and through debug message it shows me that the global temperature is going up. Any thoughts on how to fix this?