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
→
Actor dies when timer runs out.
Pages:
1
Actor dies when timer runs out.
ericblak1947
Posts: 32
December 24, 2011, 10:44:48 pm
Hello, I have been working in stencil for about a month now. I love the program and the game is coming along, and shows a lot of promise. I have I few questions that I hope someone can help me with. I’ve been reading the forum and have learned a lot. I’ve been dissecting kits and learning ton of new tricks. Here is my question.
I have a timer running at the top of the screen. When the timer reaches 0 I want the character to die. What would be the easiest why to achieve this?
Thanks for any one who can help me out!
http://www.stencyl.com/game/play/10037
rob1221
Posts: 9473
December 24, 2011, 11:06:32 pm
Well killing an actor is done by the kill block. I guess what you're asking is how to tell the actor to die from a scene behavior. If the actor is already placed in the scene editor (which it probably is for a player actor), you can make an actor attribute and select the actor in the scene properties for that behavior.
https://twitter.com/Rob1221dev
wohoo
Posts: 128
December 25, 2011, 05:17:23 am
I needed the exact same thing a while ago. I do believe I got this from the forge. See attachment.
ericblak1947
Posts: 32
December 25, 2011, 11:38:40 am
Thanks guys for the fast response. I'm trying it out right now.
ericblak1947
Posts: 32
December 26, 2011, 08:11:37 pm
wohoo worked like a charm. I added Fade in and out and looks great.
Pages:
1