Discuss Scratch
- sugarglidertotten
- 
                             Scratcher Scratcher
33 posts
Current millisecond
broadcast [ the answer isv]
broadcast [No v]
- BloatedUnderpants3
- 
                             Scratcher Scratcher
100+ posts
Current millisecond
no support. many people who use scratch wouldn't notice
                        
                        
                    - -iviedwall-
- 
                             Scratcher Scratcher
500+ posts
Current millisecond
Yes, you can useTiming between frames.Most real clocks don't track milliseconds.No Support. We don't need to track down every millisecond.Think animations and clocks
How would this be used in animation?
In clocks, sometimes you want to have a smooth second hand.
wait (.05) secsthat's 50 millisecs.
- -iviedwall-
- 
                             Scratcher Scratcher
500+ posts
Current millisecond
Scratch has speeded 30 frames per second, which there will be a 0.033 secs (or 33 millisecs) delay between every movement even there are no wait blocks, and apparently, it's the fastest speed on Scratch (unless you have TurboWarp, you can make the speed 2 times faster) without any other modes, so we don't have to track down every millisec.
                        
                        
                    - LightBoy77
- 
                             Scratcher Scratcher
500+ posts
Current millisecond
This falls into the category of this would probably be useful for people who want to make advanced code, but normal Scartchers wouldn't really use it.
                        
                        
                    - _3qp
- 
                             New Scratcher New Scratcher
18 posts
Current millisecond
I'm confused. Are we talking about the current millisecond (gets back to 0 after one second/minute/etc) or milliseconds since the Epoch (milliseconds since January 1, 1970)?
If it is the first one, then this workaround should work (I haven't tested it):
                        
                        
                    If it is the first one, then this workaround should work (I haven't tested it):
((current [second v]) * (1000))
- SuperMarioHome
- 
                             Scratcher Scratcher
100+ posts
Current millisecond
Milliseconds are 1/1,000th of a second and Scratch frames are 1/30th of a second. This would be unnecessary.
                        
                        
                    - Tunde123
- 
                             Scratcher Scratcher
1000+ posts
Current millisecond
No support.That isn't what this topic is about.
It's called “days since 2000”.
- RED-001-alt
- 
                             Scratcher Scratcher
1000+ posts
Current millisecond
No support, there wouldn't be much use, and as you posted, there's already an easy workaround.
                        
                            Last edited by RED-001-alt (May 23, 2022 15:12:11)
- lolecksdeehaha
- 
                             Scratcher Scratcher
1000+ posts
Current millisecond
Scratch has delays between blocks, so that's not nearly as accurate as you think.~snip~Yes, you can usewait (.05) secsthat's 50 millisecs.
- Crow_Boy08
- 
                             Scratcher Scratcher
1000+ posts
Current millisecond
we already have milliseconds in scratch its called   
                        
                            wait (0.001) secs
Last edited by Crow_Boy08 (May 23, 2022 15:53:44)
- RED-001-alt
- 
                             Scratcher Scratcher
1000+ posts
Current millisecond
we already have milliseconds in scratch its calledwait (0.1) secs
Yes, you can useScratch has delays between blocks, so that's not nearly as accurate as you think.wait (.05) secsthat's 50 millisecs.
- blablablahello
- 
                             Scratcher Scratcher
1000+ posts
Current millisecond
we already have milliseconds in scratch its calledthats literally the same aswait (0.001) secs
wait (0) secs
Since scratch is 30 FPS, for that to run like supposed to be, scratch needs to be 1000fps at the VERY least
- Wax01
- 
                             Scratcher Scratcher
35 posts
Current millisecond
when green flag clicked
forever
set [ current millisecond] to [((days since 2000) * (((365.25) * ((2000) * (86400000)))
end
- kexy321
- 
                             Scratcher Scratcher
58 posts
Current millisecond
The Timer variable is the only accurate time with millisecond precision. Using this, we can use the timer to collect the best accurate time from the real world.
The problem is, the timer wouldn't be accurate from the start of the project. But will then soon reset the timer and send a current millisecond. (This can only give you a timer between 1 ~ 1000.)
                        
                            when green flag clicked
set [Last Second v] to (current [second v])
forever
if <not <(Last Second) = (current [second v])>> then
reset timer
set [Last Second v] to (current [second v])
end
end
The problem is, the timer wouldn't be accurate from the start of the project. But will then soon reset the timer and send a current millisecond. (This can only give you a timer between 1 ~ 1000.)
Last edited by kexy321 (Aug. 21, 2022 04:36:21)
- 00ff00
- 
                             Scratcher Scratcher
100+ posts
Current millisecond
bump
Support.
the
                        
                            Support.
the
(timer)block only has 10 ms precision D:
Last edited by 00ff00 (Oct. 31, 2023 21:30:29)
 
            ![[RSS Feed] [RSS Feed]](http://cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)
















