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
→
Kill a specific actor
Pages:
1
Kill a specific actor
hansy2010
Posts: 28
April 03, 2014, 07:58:00 pm
I am trying create a shield actor then kill the shield actor after a certain amount of time and so I created this behavior but I can't seem to kill it. There are no options to select Shield actor. Thank you. I attached a picture. Edit: the behavior is attached to the player actor.
NoFaceEntertainment
Posts: 239
April 03, 2014, 08:09:02 pm
You can make an Always Event, when {shield = 0}, kill self. (Inside the same behaviour)
Or, within the Shield actor > After N Seconds > Kill self.
Should be easy.
I'm 17 years old, here to help and Entertain. {Also to make fun games}
ADAM: (
http://www.stencyl.com/game/play/25588
)
Also, if you need help making a platformer, search {Jumper} in Stencyl Forge. This is a player with everything you need in it, that i made. Enjoy!
hansy2010
Posts: 28
April 03, 2014, 08:17:43 pm
Oh yeah sorry thanks. I was feeling dizzy.
NoFaceEntertainment
Posts: 239
April 03, 2014, 09:28:00 pm
No need to apologize, my good man.
The more you Learn, the better you will be.
XD
Anyway, have a good one!
And good luck.
I'm 17 years old, here to help and Entertain. {Also to make fun games}
ADAM: (
http://www.stencyl.com/game/play/25588
)
Also, if you need help making a platformer, search {Jumper} in Stencyl Forge. This is a player with everything you need in it, that i made. Enjoy!
gamegirlxl
Posts: 713
April 04, 2014, 05:32:25 am
I think that you can also store the "last created actor" as an attribute right after you create the shield so that you can call on it later.
You could also "trigger custom event" and make the shield kill itself when it receives that message.
I say this because "always" has a habit of chewing up resources when you use it too much.
Pages:
1