convert from number value to string representation
How does one get a string representation of a number value, for display in screen.drawText() ?
How does one get a string representation of a number value, for display in screen.drawText() ?
Just put the value name into the command, like :
value = 23
screen.drawText(value,0,0,20,"#fff")
If you would like to add some 'string' to it it can be done by adding them together:
screen.drawText("Score = "+value,0,0,20,"#fff")
Thanks, that what I though. Wasn't working at first but now I am making it work, thanks.