I have a stopwatch and need to show milliseconds without the entire length, how?

zerosimms

  • Posts: 710
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
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
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
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
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
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
Fantastic thank you guys, Nathbo, your solution worked :) Thanks again that's a big headache gone, never notice the "Part Of" behavior before :)