Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
Hi
I'm stuck trying to keep the bkg scroll and sprite movement in sync.
Example below, fly around for a while and the ground will start to appear at the top of the screen and vice a versa.
ROM =
https://github.com/dromedargames/sf39.git
I'm sure it's a basic principle that I'm failing at, GBStudio does it but I can't get my head around the code.
What's is the best/most basic/fundamental way of doing this? Bearing in mind other characters/sprites will be added.
Thanks so much!
Offline
hard to tell anything without looking into the source. i guess you are using GBDK-2020 https://github.com/gbdk-2020/gbdk-2020/releases/latest ? then it might be a good idea to look into GBDK-2020 examples which are located in gbdk/examples/gb/ especially large_map and, probably, metasprites are relevant. you should also declare arrays with graphics as const.
Offline
thank you!
Offline