Hi @all
I´ve a little Question about Sprites, and their zooming-type.
I know, a Sprites zooms with the counts 1.2 , 0.5 , 10.4 ...ETC
Now my Problem: With Pictures, i can zoom them in percentage ( from 1% to 100% ). That´s better for bars. The Percent Code is easy: f.e.
Ok.. But with Sprites, there´s a problem...
if i use this:
The Sprite has a size from 1.0 to 100.0
If i change it to:
The Sprite is shown correct. But if i decrease the hp by 1. The Sprite is completely invisible.
The Question now:
How to zoom a sprites X and Y size by percentage?
I´ve a little Question about Sprites, and their zooming-type.
I know, a Sprites zooms with the counts 1.2 , 0.5 , 10.4 ...ETC
Now my Problem: With Pictures, i can zoom them in percentage ( from 1% to 100% ). That´s better for bars. The Percent Code is easy: f.e.
Code:
% = actor´s hp * 100 / actor´s hp_max
Ok.. But with Sprites, there´s a problem...
if i use this:
Code:
sprite.zoom_x = actor´s hp * 100 / actor´s hp_max
If i change it to:
Code:
sprite.zoom_x = ((actor´s hp * 100) / actor´s hp_max)/100
The Question now:
How to zoom a sprites X and Y size by percentage?