How to add glow to gas?

  • Iodizon
    26th May 2013 Member 0 Permalink

    I was trying to make a kind of radioactive gas but I just can't add glow effect, like PLUT and URAN, to it. Would anyone tell me how to do so?

  • Box-Poorsoft
    26th May 2013 Banned 0 Permalink
    This post is hidden because the user is banned
  • Iodizon
    26th May 2013 Member 0 Permalink

    @Box-Poorsoft (View Post)

     No, I mean how to add a glow effect like all the other radioactive elements to my newly modded element, which is a radioactive gas... And pressing 7 didn't work.

  • cabowabo4000
    7th Jun 2013 Member 0 Permalink

    what i do is i open up the codes that do have glow and one that doesnt and search the differences in code

  • jacob1
    7th Jun 2013 Developer 0 Permalink
    In a graphics function put *pixel_mode |= PMODE_GLOW

    or better, just find the like like this in the element's file: "Properties = TYPE_GAS | PROP_RADIOACTIVE", put that PROP_RADIOACTIVE there if it isn't already to make it glow.
  • Iodizon
    11th Jun 2013 Member 0 Permalink

    @jacob1 (View Post)

    Didn't work..

  • jacob1
    11th Jun 2013 Developer 0 Permalink
    did you press 7? ... I promise that works, I tried it
  • Iodizon
    11th Jun 2013 Member 1 Permalink

    @jacob1 (View Post)

     I did, but it didn't work.

    The code was like this:

     

     

    //#TPT-Directive ElementHeader Element_RADN static int graphics(GRAPHICS_FUNC_ARGS)
    int Element_RADN::graphics(GRAPHICS_FUNC_ARGS)

    {
    *pixel_mode |= PMODE_GLOW;
    return 0;
    }

     

    But it turned out like this:

    No glow.

  • jacob1
    11th Jun 2013 Developer 0 Permalink
    ok, do PROP_RADIOACTIVE instead actually, because that's what I tested that was working. I guess I assumed glow should work too.