Let's say you have want to update your score. You would have to use the "var" action, and then call a custom function with "call", to update your GUI. something like this
- text: You win one point! - var score: "{score} + 1" - call updategauges:
Then, in the CustomContent.js, you need the function updategauges, something like this (if you're using jquery):
RenJS.customContent = { updategauges: function () { var score = RenJS.logicManager.vars.score; $("#intel").val(score); RenJS.resolve(); } }
This would update your "intel" meter. If you need to animate it, change the color according to the value, etc, you should be doing it in this function. And of course, when you start your game and all your gagues are in their starting value, you should call this function too so you see them.
Hope it helps!