This works but not really want I want. My idea was to have a lantern that slowly dims as its used and the light will slowly decrease in size.
Problem with this is I cant resize the light and it delays when player walks.
PHP Code:
//#CLIENTSIDE
function onCreated() {
if (isObject(Kirko_Testing)) Kirko_Testing.destroy();
onTimeOut();
}
function onTimeOut() {
temp.x = screenx(player.x - 3, player.y - 3);
temp.y = screeny(player.x - 3, player.y - 3);
new GuiDrawingPanel("Kirko_Testing") {
resize(0, 0, screenwidth, screenheight);
useownprofile = true;
profile.modal = false;
clearall();
drawimagestretched(0, 0, screenwidth, screenheight, "black2.png", 0, 0, 1, 1);
maskimage(temp.x, temp.y, "k_lantern_light2.png", "multiply");
pushtoback();
}
setTimer(0.05);
}
Quote:
Originally Posted by Elk
dusty made an improved thing using 1 zoomed polygon only, but i cant find the thread :/
|
click the little blue arrow in the post callimuc quoted