It’s nothing groundbreaking, there were a few similar demos before on the subject, and also p00f made one not so long ago (if anyone remembers).
However I found yet another way to go about it, and it actually turns out to be relatively simple, and even pretty in it’s own way.
So, for anyone interested:
#Yet another UVfontless counter -Social cont = GameLogic.getCurrentController() own = cont.getOwner() hun_act = cont.getActuator("hun_act") ten_act = cont.getActuator("ten_act") one_act = cont.getActuator("one_act") score = int(own.prop) if score == 999: own.prop = 0 s1 = 0 s10 = 0 s100 = 0 if score < 10: s1, = [int(char) for char in str(score)] else: if score < 100: s10, s1 = [int(char) for char in str(score)] else: s100, s10, s1 = [int(char) for char in str(score)] hun_act.setMesh(str(s100)) GameLogic.addActiveActuator(hun_act, 1) ten_act.setMesh(str(s10)) GameLogic.addActiveActuator(ten_act, 1) one_act.setMesh(str(s1)) GameLogic.addActiveActuator(one_act, 1)
The .blend is here: