Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I'm wanna make the 2d interface show content of a variable and update it when it changed I'm want to make text health bar using this method |
||||
|
you do it with js? |
||||
|
wrote: you do it with js? i dont know if i can make it without coding its better but i dont how to make it in js |
||||
|
if i can make it without coding its better if use "Game Actor with Health" you can use on your 2d overlay node "Every few seconds do something" and inside action set "Execute Java Script" inside of script write this line: ccbSetSceneNodeProperty(ccbGetCurrentNode(),"Text",ccbGetCopperCubeVariable("player_name.health")); "player_name" is name of yor node with "Game Actor with Health", done now set update speed in "Every few seconds do something". |
||||
|
hashtag before player_name.health, forum deleted this combination |
|