Discuss Scratch

Werner53
Scratcher
25 posts

Turbo Mode

How to detect turbo mode in scratch??
Endermangames2
Scratcher
18 posts

Turbo Mode

i mean you could probably just detect the fps of the player and use that to determine if they are using turbo mode

dont really know any reliable fps detection methods but just comparing that to the base scratch fps (30) should work?
Werner53
Scratcher
25 posts

Turbo Mode

Endermangames2 wrote:

i mean you could probably just detect the fps of the player and use that to determine if they are using turbo mode

dont really know any reliable fps detection methods but just comparing that to the base scratch fps (30) should work?

I want to know turbo mode (250 fps)
KvZombies
Scratcher
5 posts

Turbo Mode

I dont think that is possible, they dont have anything for that that I know of.
Conduit7
Scratcher
100+ posts

Turbo Mode

define detectIfTurbowarp
reset timer
set [frame v] to (0)
repeat until <(timer)>(0.9999999)>
change [frame v] by (1)
set [fps v] to ((frame)/(timer))
end
if <(fps)>(200)> then
set [is turbo mode? v] to (1)
end
i believe this should work
Werner53
Scratcher
25 posts

Turbo Mode

Conduit7 wrote:

define detectIfTurbowarp
reset timer
set [frame v] to (0)
repeat until <(timer)>(0.9999999)>
change [frame v] by (1)
set [fps v] to ((frame)/(timer))
end
if <(fps)>(200)> then
set [is turbo mode? v] to (1)
end
i believe this should work
Thanks!
Conduit7
Scratcher
100+ posts

Turbo Mode

Werner53 wrote:

Thanks!
no problem happy to help
DuyMinh3005
Scratcher
10 posts

Turbo Mode

define FPS
set [FPS v] to ((1) / (timer))
when green flag clicked
forever
FPS
end
DuyMinh3005
Scratcher
10 posts

Turbo Mode

forever
if <(FPS) = [infinity]> then
TURBOWARP DETECTED
end
end

Powered by DjangoBB