I think it's supposed to get it every second, all the timeThat and greater fluctuates and changes depending on what’s going on in the project so you can’t just get it once.There's an error here, the framerate will keep going up by 30 each second because you're not resetting f.Get the framerate:(#4)that's assuming the project is running at a perfect framerate
maybe this?wait ((frames) / (30)) secs
i thinkwhen green flag clickedThen to wait one frame:
forever
change [f v] by [1]
end
when green flag clicked
forever
wait (1) secs
set [fps v] to (f)
endwhen green flag clicked
wait ((1) / (fps)) secs
↧
About Scratch :: Suggestions :: scratch blocks
↧