Hello,
I am using the stretch sprite command to create a 'level progress bar'
So I wanted to write some code to figure out how far along into the current level you are as a percentage and then use that as a variable in the stretch sprite command right?
So imagine level one ends at 5000 points , which is the potential High_Score
Your current score is 2500 points which we will call CurrentScore
My Code so far is like so
Rem Project: RoundTest
Rem Created: Sunday, April 22, 2012
Rem ***** Main Source File *****
REM ** SET DISPLAY MODE **
Set Display Mode 800,600,16
do
cls
High_Score=5000
CurrentScore=2500
Added# = CurrentScore / High_Score
AddedPrint$=STR$(Added#)
text 100,100, "Added value is: " +AddedPrint$
Percentile= Added# *100
Percentile_Print$=STR$(Percentile)
text 100,115, "Percentile is: " + Percentile_Print$
Text 100,200, "Press any key to try again!"
wait key
LOOP
My expectation is that Added# should be .5, then this gets multiplied by 100 to be 50 which is the number I am looking for; however it comes out as 0, and 0 respectively.
Any ideas what I'm doing wrong with this one?
Thanks!