Discussion in 'How Can I...?' started by Polat, Jan 14, 2019.
Hey, does anyone know how to add a distance score counter to BB3?
let dist = this.scene().path().pathPosition();
Hello, thanks but I'm not really good with coding. Exactly where should I paste this code?
Have you figured out where to place the code? I also would like to have a label display the distance?
This does not work.
i tried now, its works.
Can you show me the node you used for this and where it's linked?
its inside the box.
Thanks Weboha, yes this works, but it's causing game performance issues. It lags as hell due to my game features. My game has constant moving character and this label is moving with it. This label drag and calculation is causing game performance problems.
I was looking for something simple like UI (Distance Score) like we had with BB2. Any ideas on how to make this node smother / lighter to avoid the performance issues? Maybe not to calculate the distance that much (example to calculate with one or two integers, instead of 4 integers.
I removed this line:
Game performs better.
Now idea how to display this score on Game Over screen?
Since bbAssets can be added on UI, we can build a custom script with this Display Score and have that as a separate object in the 3D world. Then we can export this custom Display_Score_bbAsset and Import it to the Game Over UI.
What would be the code for that to Display CURRENT / BEST scores for CURRENT world?
@PunkPuffin - you know?
Separate names with a comma.