Gameboy Development Forum

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.

#1 2021-06-17 11:23:58

dromedar
New member
Registered: 2021-06-17
Posts: 2

Help please! BKG scroll and limit

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

 

#2 2021-06-18 06:00:56

toxa
Member
Registered: 2020-02-13
Posts: 305

Re: Help please! BKG scroll and limit

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

 

#3 2021-06-19 12:55:38

dromedar
New member
Registered: 2021-06-17
Posts: 2

Re: Help please! BKG scroll and limit

thank you!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson