How to make flame white?

  • Videogamer555
    16th May 2012 Member 1 Permalink
    Ok I used PLSM for the flame, but found a problem. When life is set to 1000, the flame is bright cyanish white color, the color I want, but the PLSM particles last WAAAYYYYY too long. I want them to last for the time of about life=20 to life=50. Yet at such small life values PLSM has a dark purple color. How do I change the graphics of PLSM, but NOT in a fundamental/permanent way. I don't want ALL instances of PLSM to use the new graphics. I just want the PLSM spawned by my new element to have this property. Is there a way to temporarily assign graphics properties to a spawned element, within the update function for the spawner element, rather than in the update function of the element being spawned?
  • keperitan
    16th May 2012 Member 0 Permalink
    Two words:
    Coloured BIZS.
  • tian110796
    16th May 2012 Member 1 Permalink
    Here are some solutions:
    - Copy all properties of plsm to a new element, changing only its graphics code to fit the life condition.
    - Make a new variable (or use an unused one for plsm) that contains what element a particle is made from and use that to have a condition for the modified graphics.
    - Same as the previous solutions, but instead of modifying the graphics code, make its life decrease faster by subtracting more life each frame.

    Also, as the conditions last for more than one frame, the spawner cannot determine the position of its spawns, the code must be in the spawned's update code, unless the spawns do not move or move in a predictable manner.
  • Videogamer555
    16th May 2012 Member 1 Permalink

    keperitan:

    Two words:
    Coloured BIZS.


    I'm talking about how do I do it in C!?

    I need some CODING help to accomplish this in C. I want to know what graphics commands in C I have access to to change the color and glow brightness of a flame (PLSM in my case), in the update function of an element which is to generate this flame (magnesium in my case, I'm making magnesium, and it when ignited it will generate PLSM, but I want the resulting PLSM to have a specific appearence, so I want to know what graphics commands that will affect the appearence of the created PLSM I can invoke in the update function of my magnesium).

    Where are all the real helpful people (aka those who know how to code TPT in C)? Because most certainly kperitan you provided the least helpful hint imaginible, as your hint has NOTHING to do with C coding, and I doubt you've coded anything in C ever.
  • vanquish349
    16th May 2012 Member 3 Permalink
    @Videogamer555 (View Post)
    stop pissing people off and you will get help.
  • limelier
    16th May 2012 Member 1 Permalink
    @Videogamer555 (View Post)
    Whoa, PLSM turns toothpaste colour at 1000 life? Thanks!
  • Plasmoid
    16th May 2012 Member 0 Permalink
    Unfortunately I can't code very well...
  • EqualsThree
    16th May 2012 Member 0 Permalink
    @tudoreleuu (View Post)
    It also lasts for a long, long time...in a particle simulator, far, far away..


    vanquish349:


    stop pissing insulting people and you will get help.


    kepertitan wasn't pissed off in the first place.

    VideoGamer5555:


    Where are all the real helpful people (aka those who know how to code TPT in C)?


    How about, try waiting for someone WHO knows C to show up, INSTEAD of WHINING.
  • jacksonmj
    16th May 2012 Developer 0 Permalink
    The appearance of plasma is entirely controlled by graphics_PLSM, in src/elements/plsm.c. There is no way to influence it without changing graphics_PLSM.

    Here is a very sensible suggestion:

    tian110796:

    Make a new variable (or use an unused one for plsm) that contains what element a particle is made from and use that to have a condition for the modified graphics.

    It is safe to use ctype to store the element PLSM was made from (this is what already happens for PLSM made from NBLE).



    Videogamer555:

    Where are all the real helpful people (aka those who know how to code TPT in C)?

    Perhaps they're busy coding TPT in C? (Or replying to other threads, or busy with real life?)
  • tommig
    16th May 2012 Member 0 Permalink
    @Videogamer555 (View Post)
    Yes there is, and I can help. Are we going for fire or plasma here?