I have 1 thing holding me back in my game- the total price. I don't know how to get it to say the price. It goes into decimals (obviously), which messes up other methods because it has a costume for the decimal and a costume to clear itself because I stamp other things too, which I don't want to clear. It has 12 costumes- 1-9, than 0, and thna deciaml point and clearing itself. What formula can I use to get it to always display the right price?
Offline
joeyman wrote:
Did you try using the round blocks by the hundredths like round money x .1?
It won't work just rounding it. Just a regular one takes complicated scripts, but I imagine with a decimal and cover, it would take even more complicated scripts
Offline
Bluestribute wrote:
I have 1 thing holding me back in my game- the total price. I don't know how to get it to say the price. It goes into decimals (obviously), which messes up other methods because it has a costume for the decimal and a costume to clear itself because I stamp other things too, which I don't want to clear. It has 12 costumes- 1-9, than 0, and thna deciaml point and clearing itself. What formula can I use to get it to always display the right price?
So, you are using a stamping routine to do the decimal number? And that isn't working because you need to clear for other reasons? What if you had a sprite for each digit (and one costume that matched the background)? Then, you could just work out the code to set each sprite to the right costume. You would have custom number formating without stamping.
Offline
Paddle2See wrote:
Bluestribute wrote:
I have 1 thing holding me back in my game- the total price. I don't know how to get it to say the price. It goes into decimals (obviously), which messes up other methods because it has a costume for the decimal and a costume to clear itself because I stamp other things too, which I don't want to clear. It has 12 costumes- 1-9, than 0, and thna deciaml point and clearing itself. What formula can I use to get it to always display the right price?
So, you are using a stamping routine to do the decimal number? And that isn't working because you need to clear for other reasons? What if you had a sprite for each digit (and one costume that matched the background)? Then, you could just work out the code to set each sprite to the right costume. You would have custom number formating without stamping.
Yeah, I might (and will) have ti try that since it isn't working so far.
Offline