Script Request!

  • Dawgie
    6th Dec 2011 Member 0 Permalink
    Could someone try to make a place where you can PERMANENTLY change the color of SPRK? If it isn't possible just say so.   >'_'<
  • mniip
    6th Dec 2011 Developer 0 Permalink

    Dawgie:

    If it isn't possible just say so

    So
  • Dawgie
    6th Dec 2011 Member 0 Permalink
    ...not what i meant explain why its not they had to add color to it originally so knowing that there should be some way to do it
      
  • TinyWolfie
    6th Dec 2011 Member 0 Permalink

    Well, I have some LUA experiance from Garry's mod. I'll try to cook something up. I'm not sure if I can though, sorta rusty :/

    -TinyWolfie<3

  • Dawgie
    6th Dec 2011 Member 0 Permalink
    Thanks
  • ArtMaster
    6th Dec 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • mniip
    6th Dec 2011 Developer 0 Permalink
    Actually there is a way to do this BUT IT WILL BE TOO HARD.
    You can use tpt.drawpixel and do it pixel by pixel
  • me4502
    6th Dec 2011 Member 0 Permalink
    @mniip (View Post)

    in the latest powder-sim source version, using my lua graphics API, this is easy
  • MasterMind555
    6th Dec 2011 Member 0 Permalink
    @TinyWolfie (View Post)
    It's Lua, not LUA, it's not an acronyme
  • Ximon
    6th Dec 2011 Administrator 0 Permalink
    function sprkcolour()
    tpt.set_property("dcolour", 0xFF0000FF, I)
    end
    tpt.element_func(sprkcolour, tpt.el.sprk, false, sprkcolour)

    That should work in the latest beta, if you're using the current stable, you'll have to do
    tpt.set_property("dcolour", 0xFF0000FF, "sprk");
    This doesn't change it for everything and has to be called when you create a new particle.