Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
In "Multiplayer_2" behavior by jaimezegpi i found pretty awesome thing: Names and messages of players makes out of 2D overlays and always move with players. I was trying to make something using this plugin, but i am absolutely noob in JS. I'm really needed this behavior to make interactive NPC's names with localization. Any idea how i can make this, or some good sir can make this behavior for JS noobs like me? :) |
||||
|
hi, i think something like this might be what you are looking for... var npc = ccbGetSceneNodeFromName("cubeMesh1"); every few seconds... 2d overlays must be set to absolute pixels... |
||||
|
Thank you so much! Thats help me a lot :) |
||||
|
or maybe you want your 2D overlays to be relative (percent) ... then you will have to calculate something different like... var npc = ccbGetSceneNodeFromName("cubeMesh1"); every few seconds javascript command... 2d overlays must be set to relative (percent)... |
|