TYPE_ENERGY Particles are solid

  • p123aradise
    9th Jan 2013 Member 0 Permalink

    So I'm trying to add a new energy-like particle, Protons. I've basically copy/pasted the Electron code (ELEC.cpp), and changed the name and colors, but when i spawn the element, it doesn't fly off in different directions like ELEC and PHOT do, it remains a glowing solid, as if the game was paused.

    What is going on?

  • Pilihp64
    9th Jan 2013 Developer 0 Permalink

    It needs to get movement from somewhere!

    Most elements have special statements when they are created (In simulation.cpp , starting at line 2674) to give them movement or other properties, you should be able to find many element types that get special values on creation, you can use similar ones that ELEC has (line 3096).

  • p123aradise
    10th Jan 2013 Member 0 Permalink

    @cracker64 (View Post)

     I knew that was involved somehow! Thanks.