Have you figured out where to place the code? I also would like to have a label display the distance?
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.
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?