sidcrazy Posted December 14, 2017 Share Posted December 14, 2017 Hello, been a long time since I posted or asked any questions but I am stuck and can't find any code or explaination to fix my problem. I want to have a score with a dollar sign at the beginning of the score $. My problem is when I add to the score it turns to a 1. I took this code from another thread. I also use the custom font file so the dollar and space work just fine. const fontstyle=STOCK const fontcharDOLLAR=1 const fontcharSPACE=4 dim sc0=score dim sc1=score+1 dim sc2=score+2 rem we update the score bytes individually... sc0=$ba sc1=$00 sc2=$00 Only when I add to score do I have problems. The dollar sign turns to a 1. I even tried adding to sc2 and still it won't won't work. Hope this isn't too stupid of a question. Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted December 14, 2017 Share Posted December 14, 2017 Add to the score like normal, then just before you draw the screen fix the score. Assuming the $ graphic is immediately after the 9 graphic you'd do this: sc0 = sc0 & $0f ; remove leftmost digit sc0 = sc0 | $a0 ; make leftmost digit $ 1 Quote Link to comment Share on other sites More sharing options...
sidcrazy Posted December 14, 2017 Author Share Posted December 14, 2017 Thank you so much!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.