A brand new game
for Windows, HTML5, iPhone, Android TV and more,
every week,
unless exhausted!
Score Display
  7th May, 2017
One of my favourite discoveries in coding is A=A-((A-B)/C)
It's a very simple little formula which has a myriad of multiple uses.
In my framework, it's taking care of all manner of different things for me, but today I wanted to mention it's use in score displaying.


To help give an example, and to also allow you to grab the code, I've made the above example over at PlayMyCode.com.
You can view, and play with the code here.

The effect is really easy to pull off, and works a treat, making the score counter seem a little more lively.
Just be sure that, when saving the player's score, you remember to save the Actual score, not the displayed score!!

Views 2, Upvotes 0, 7th May, 2017
Coding , Developer Tips
Site credits : Jayenkai put all his heart and soul into everything you can see on this site.
(c) Jayenkai 2017 and onwards.
Blog - Score Display - AGameAWeek