Discuss Scratch

CastProjects
Scratcher
15 posts

BPM doesn't work

I want to make a rhythm game FNF-like, so I immediately added the Music extension to my project. I made this script which serves as a metronome, but halfway through the song it didn't sync anymore, and I know the BPM value is exactly the one used in the song because I created it!

Does anybody know how to fix this?
alpha_ape_13
Scratcher
500+ posts

BPM doesn't work

Try using

whenclickedsetBPMto150foreverwait60/BPMsecs....
ametrine_
Scratcher
1000+ posts

BPM doesn't work

alpha_ape_13 wrote:

Try using

whenclickedsetBPMto150foreverwait60/BPMsecs....
the “wait seconds” block always waits 1 frame (1/30 of a second usually) more than you tell it to, which means this will get more and more inaccurate over time. this is also the case for the tempo block, as far as i'm aware.
you can do this to fix it:

setoffsetto0foreverwaituntiltimer>60/BPM+offsetyourcodeherechangeoffsetby60/BPM

Powered by DjangoBB