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
→
Total score to count up from zero on score screen (SOLVED)
Pages:
1
Total score to count up from zero on score screen (SOLVED)
timbirks
Posts: 75
March 29, 2014, 11:24:56 am
Hi all, there is probably a simple solution to this, basically I have a score screen which displays the total score accumulated during the game, I'd like this number to count up from zero and then stop on final score number, any suggestion as to how this is done? many thanks
« Last Edit: March 29, 2014, 02:45:17 pm by timbirks »
Super Crash Land v1.2 - Available to Download now from Google Play absolutely free!
https://play.google.com/store/apps/details?id=com.timbirks.supercrashlandv12
Alucards
Posts: 51
March 29, 2014, 11:31:46 am
IF statement blocks.
IF yourscore>=maximumscore
[ Stop count]
Otherwise
[Set globalscore=globalscore+score]
Somethink like that. Just put if statement, in section where all time score is rising, and when it get max number, just ignore set stuff.
Maybe you understand my talk.
timbirks
Posts: 75
March 29, 2014, 12:30:07 pm
Hi thanks for the quick reply! Would I put this in a drawing block or an Updated block? thanks
Super Crash Land v1.2 - Available to Download now from Google Play absolutely free!
https://play.google.com/store/apps/details?id=com.timbirks.supercrashlandv12
timbirks
Posts: 75
March 29, 2014, 02:48:25 pm
solved, thanks for your help. I did it like this..
Do every N Secs
If Counter <=Total Score
Set Counter to Counter +1
If Counter >=Total Score
Set Counter to Total Score
Super Crash Land v1.2 - Available to Download now from Google Play absolutely free!
https://play.google.com/store/apps/details?id=com.timbirks.supercrashlandv12
Pages:
1