Register_Step help

  • vertigo
    28th Jun 2012 Member 0 Permalink

    I have this code:

    function EMBR()
       tpt.set_property("life", "embr", "75")
    end
    tpt.register_step(EMBR)

    Extremely simple, eh?

    But it only works on 1 EMBR particle that is on the screen.

    What exactly should i do to fix this? Also, sorry for the all the posts. It is not intended as spam.

  • jacksonmj
    29th Jun 2012 Developer 0 Permalink
    The wiki says:
    tpt.set_property(string property, object value, string type)

    So the arguments are the wrong way round. Instead, use:
    tpt.set_property("life", 75, "embr")