Hello!
I am currently building a preferences screen for one of my new games, but the if statement controlling the display of the volume level aren't executing commands properly.
Here's my code:
if volprcnt==0 then locate 40,6 print "mute" elseif volprcnt>=.1 && volprcnt<=.9 then locate 40,6 print volprcnt*100 elseif volprcnt==1 then locate 40,6 print "max" endif return"volprcnt" is a number between 0 and 1 that I am multiplying by 127 to get the value of my "vol" variable on my beep commands. If volume is at zero, it should print mute, and if it's max, it should print max, but it only prints the numbers between 10 and 90 (I am multiplying to remove the decimal from what the user sees). I don't see either word. Why is this? Thank you, Alan