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
→
I have a stopwatch and need to show milliseconds without the entire length, how?
Pages:
1
I have a stopwatch and need to show milliseconds without the entire length, how?
zerosimms
Posts: 710
April 29, 2014, 09:37:13 am
Hey
So I have setup a stop watch in my game and I want to show the milliseconds, but the entire length is shown (screenshot) I obviously don't want to round up or down the entire number, so I was wondering how I would display it with SECONDS.MILLISECOND
The screenshot would them become 3.7
Thanks in advanced
Rares
Posts: 216
April 29, 2014, 10:07:18 am
I would record the time using
Do Every 1/10 seconds
increment time by 0.1
or if you want 2 decimals
Do Every 1/100 seconds
increment time by 0.01
Last version (0.1.5) of my now cancelled game:
http://www.stencyl.com/game/play/27241
zerosimms
Posts: 710
April 29, 2014, 10:14:44 am
Hey Rares,
Thanks for replying I tried what you suggested but it still draws out the entire length on the game screen.
I've attached some screenshots that show my config
Rares
Posts: 216
April 29, 2014, 10:35:31 am
There is a block that Rounds, Floors or Roofs a value, scroll down in Numbers & Text
« Last Edit: April 29, 2014, 11:32:40 am by Rares »
Last version (0.1.5) of my now cancelled game:
http://www.stencyl.com/game/play/27241
Balmut
Posts: 21
April 29, 2014, 11:34:07 am
Wouldn't round or floor remove all numbers after the decimal? So it would become 4 instead of the requested 3.7?
Nathbo
Posts: 388
April 29, 2014, 11:41:58 am
Hi I attached what I use to show part of the timer
It is from the timer behavior
I hope this helps
Visit my Facebook page
http://www.facebook.com/NathboGames
Twitter
@NathboGames
zerosimms
Posts: 710
April 29, 2014, 12:47:49 pm
Fantastic thank you guys, Nathbo, your solution worked
Thanks again that's a big headache gone, never notice the "Part Of" behavior before
Pages:
1