#progress bar not working
1 messages · Page 1 of 1 (latest)
Can you monitor score in the editor? See if anything is changing?
Or how it’s changing?
it is changing
i can see it changing
yeah i just checked to be sure its definitely changing
I see you’re using localScale
Is the parent object really big?
not really
Try using regular scale
Might have to adjust some numbers
wait how
i can't just change localscale to scale
how do i change scale
im surprised i've never had to do this before lmao
it should just be transform.Scale
That’s weird
One second
Ig Scale isn’t even a thing
Let me look something up real quick
Well there is lossyScale, but it’s read only
Ig u juste have to use local scale
That’s weird though
yeah
its rounding up
to 1, then 2, then 3
but i want decimals
given that 1 is the scale i want when the score is max
Hmm
So does it end up bigger than the progress bar?
If the 1 is the max scale and it’s getting to 1, then 2, then 3?
well basically it stays at scale 0 until i hold down for long enough and the score reaches 1000 (max) and the scale is set to 1
then if i keep holding, it goes to scale 2 at 2000
then 3 at 3000
and so on
i know!
no worries
I’ll keep thinking
And let you know if I find anything
Hmm I might have an idea
Are score and reqscore integers
@waxen trellis
It’s a casting thing
Instead of (float)(score/reqscore)
Try (float)score/(float)reqscore
or i could just change them from "public int" to "public float"
so they're floats from the start
Yeah, with your old code you were dividing two integers and trying to return a decimal
But it can’t
So it had to return and integer
Ye ofc
this is epic