View Single Post
  #6  
Old 07-29-2016, 12:01 AM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko has a spectacular aura aboutKirko has a spectacular aura about
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.screenx(player.3player.3);
  
temp.screeny(player.3player.3);

  new 
GuiDrawingPanel("Kirko_Testing") {
    
resize(00screenwidthscreenheight);
    
useownprofile true;
    
profile.modal false;
      
    
clearall();
    
drawimagestretched(00screenwidthscreenheight"black2.png"0011);

    
maskimage(temp.xtemp.y"k_lantern_light2.png""multiply");

    
pushtoback();
  }
  
setTimer(0.05);


Quote:
Originally Posted by Elk View Post
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
Reply With Quote