repo: janusweb action: commit revision: path_from: revision_from: c153243af48d58e3b44738e97d781e323725b90f: path_to: revision_to:
commit c153243af48d58e3b44738e97d781e323725b90f Author: James BaicoianuDate: Thu May 9 11:54:28 2019 -0700 Billboarded label for remote player userids diff --git a/scripts/remoteplayer.js b/scripts/remoteplayer.js
--- a/scripts/remoteplayer.js
+++ b/scripts/remoteplayer.js
@@ -58,15 +58,17 @@ elation.component.add('engine.things.remoteplayer', function() {
collidable: false
});
*/
- this.label = this.head.spawn('label', this.player_name + '_label', {
+ this.label = this.createObject('text', {
size: .1,
+ thickness: .002,
align: 'center',
collidable: false,
text: this.player_name,
- position: [0,.5,0],
+ position: [0,2,0],
orientation: [0,1,0,0],
pickable: false,
- collidable: false
+ collidable: false,
+ billboard: 'y'
});
this.mouth = this.head.spawn('sound', this.properties.player_name + '_voice', {
//loop: true
-----END OF PAGE-----