IPete
I had a play around with the code last night, and rewrote it from the small test it was to a properly laid out one - using types etc etc.
Anyway, I basically played about with your idea.
So for example,if I scroll at 3 pixels a second, it takes me 3.125 secs for the button graphic to get from the top the screen, to the bottom (where it needs to be pressed).
So using this I stored the "note time" (when it is meant to be played ie. 7.35secs), and also another value which is (time - scrDelay ie. 7.35 - 3.125) which is the value I check against a timer to see if the graphic should be displayed yet.
It`s kinda working, and kinda not..... I`m still thinking I need to work out some kind of formula so the scroll speed will be adjusted accordingly depending on the the BPM of the song being played.
Any ideas still welcome!
I had a play around with the code last night, and rewrote it from the small test it was to a properly laid out one - using types etc etc.
Anyway, I basically played about with your idea.
So for example,if I scroll at 3 pixels a second, it takes me 3.125 secs for the button graphic to get from the top the screen, to the bottom (where it needs to be pressed).
So using this I stored the "note time" (when it is meant to be played ie. 7.35secs), and also another value which is (time - scrDelay ie. 7.35 - 3.125) which is the value I check against a timer to see if the graphic should be displayed yet.
It`s kinda working, and kinda not..... I`m still thinking I need to work out some kind of formula so the scroll speed will be adjusted accordingly depending on the the BPM of the song being played.
Any ideas still welcome!