... function set_health() { if (health != max_health) { health = max_health; win_x = (health_width*health)/max_health; win_x = health_width - win_x; } } ... PANEL* my_panel = { ... hslider(30,117, 148, s_slider, 10, 200, max_health); on_click = set_health; //Hiirenupu vajutusel muudame elud samaks kui max_health ... }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de