Problem with healing actor

Darkhog

  • Posts: 1243
I've made behavior used for medkits, but unfortunately it takes out health instead of adding it. Could you help me? I adding also Health behavior.

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

Greg

  • *
  • Posts: 1260
The Health behavior is applying the damage upon collision.  That's what the logic is doing in the "when collided" wrapper.  You could set the default damage to 0 and then it won't inflict damage.

Darkhog

  • Posts: 1243
It is set to 0. WTH?


//edit: Apparently it always set health to 3 no matter what health is.

« Last Edit: June 12, 2011, 11:27:26 am by Darkhog »

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

Darkhog

  • Posts: 1243
Solved. It turned out that heal actor by amount is faulty (or set smaller amount of [] and [] block in general), so I had to do a little trick:

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D