|
|
Panel Y scale
#345219
10/24/10 11:36
10/24/10 11:36
|
Joined: May 2009
Posts: 5,367 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,367
Caucasus
|
How do I change panels Y according to skill (my.health)? I know how to do that in X coordinates:
panel.scale_x = maxv(0.01,my.health/100);
But how do I make the same with panel in Y coordinates? So it will decrease downwards.. The way I've tried it, is decreases upwards:
panel.scale_y = maxv(0.01,my.health/100);
How do I make it?
|
|
|
Re: Panel Y scale
[Re: 3run]
#345222
10/24/10 11:46
10/24/10 11:46
|
Joined: Jul 2008
Posts: 170 Germany, near Mainz
Nicotin
Member
|
Member
Joined: Jul 2008
Posts: 170
Germany, near Mainz
|
"decrease downward" would be increase. So How about
panel.scale_y = minv(Max,my.health/100);
or
panel.scale_y = minv(Max,Max_health - (my.health/100));
|
|
|
Re: Panel Y scale
[Re: Nicotin]
#345242
10/24/10 13:03
10/24/10 13:03
|
Joined: May 2009
Posts: 5,367 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,367
Caucasus
|
I've tried this one:
panel.scale_y = minv(Max,my.health/100);
not working, panel is increasing downwards, as well as its size is increasing too. Didn't try the last one. I'll test it now.
|
|
|
Re: Panel Y scale
[Re: 3run]
#346131
11/01/10 16:35
11/01/10 16:35
|
Joined: May 2009
Posts: 5,367 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,367
Caucasus
|
|
|
|
Re: Panel Y scale
[Re: Superku]
#346156
11/01/10 20:39
11/01/10 20:39
|
Joined: May 2009
Posts: 5,367 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,367
Caucasus
|
I've made two panels: * red - health * green - stamina They are placed upwards, so they must decrease downwards, like on the picture: I can make them increase-decrease in X coordinates, but how do I make the same in Y coordinates?
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|