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
→
Resolved Questions
→
How to make a death counter? (SOLVED)
Pages:
1
How to make a death counter? (SOLVED)
Smiletowncrew
Posts: 29
August 07, 2012, 11:06:55 am
Hi i'm having some problems making a death counter that shows how many times my actor dies in the game. PLEASE HELP thank you.
« Last Edit: August 08, 2012, 12:13:26 am by Smiletowncrew »
Teach me more master!
ipe 369
Posts: 1001
August 07, 2012, 01:49:48 pm
Add a global attribute called death counter.
add a scene behaviour called count deaths.
add an event called 'when actor is created or destroyed' and change it to 'when player is destroyed'
then inside put 'death counter = death counter + 1'
Smiletowncrew
Posts: 29
August 08, 2012, 12:12:55 am
Awesome thank you!
Teach me more master!
Pages:
1