[Help] How to "Feed" Stickmen?

  • diamondsword229
    28th Jul 2014 Member 0 Permalink

    I'm just wondering how to make a certain particle that i made (CNDY) heal stickmen. preferably with an update function.

  • FeynmanLogomaker
    28th Jul 2014 Member 1 Permalink

    "Feeding" stkm is just increasing their life, so it would probably be something like this:

     

    local stkX, stkY = get_location_of_stkm_to_feed()

    tpt.set_property("life", tpt.get_property("life", stkX, stkY) + 1, stkX, stkY)

  • diamondsword229
    28th Jul 2014 Member 0 Permalink

    I know that much, but how to i kill only the CNDY particle that he eats?

  • boxmein
    28th Jul 2014 Former Staff 1 Permalink
    @diamondsword229 (View Post)
    See PLNT's source code (or STKM's) and figure out how PLNT and STKM interact. You'll get some clues there.