TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
Books & Courses
FORUMS
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Chat
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Problem with healing actor
Pages:
1
Problem with healing actor
Darkhog
Posts: 1243
June 12, 2011, 06:03:27 am
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
Greg
Posts: 1260
June 12, 2011, 06:59:16 am
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.
greg@stencyl.com
Darkhog
Posts: 1243
June 12, 2011, 11:12:04 am
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
Darkhog
Posts: 1243
June 12, 2011, 12:43:42 pm
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
Pages:
1