Script help

  • jacob1
    29th Jun 2012 Developer 0 Permalink
    Try this: it's untested though:
    tpt.el.watr.name="MGLQ"
    tpt.el.watr.temp=255
    function heat(i,x,y,surround_space,nt)
    if tpt.get_property("temp",i)==256 then
    tpt.set_property ("temp",0,i)
    end
    end
    tpt.element_func(heat,tpt.el.watr.id,1,virus)


    You needed to make an element function, not a function that is just run once per frame. Also the temperature of your element will probably almost never be exactly 256 degrees Kelvin.
  • Dawgie
    29th Jun 2012 Member 0 Permalink
    Ok I started over and I have it working but whats the format for color its like
    tpt.el.elem.color=
    do i just copy and paste the code from colorpicker.com there?
  • boxmein
    29th Jun 2012 Former Staff 0 Permalink
    @Dawgie (View Post)
    Select the Hex with #.
    So it'd be like "#FFFFFF"