TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
When actor is killed
Pages:
1
When actor is killed
gplar
Posts: 1115
October 27, 2015, 03:11:16 am
Just wondering:
If "When actor is killed" is used in a scene behavior, will code referring to properties of the killed actor be valid? For example if I try to get an actor value from the actor. Or is it already non-existent? If so, I´ll work around it by saving values before it is killed.
jsblack
Posts: 117
October 28, 2015, 01:30:18 am
I would actually like to know the answer to this. I've never used that "When Killed" event. I just use "Kill [Self]" and then put the rest of the code there. Lemme know what you discover.
gplar
Posts: 1115
October 28, 2015, 03:48:26 am
After experimenting I agree with you in case of references to the involved actor. Stick code before the "kill self".
"When actor is killed" works when it triggers other events or updates score.
jsblack
Posts: 117
October 28, 2015, 04:27:08 am
Interesting. Cheers.
Pages:
1