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.

Ads

#1 2020-07-11 11:08:09

Dalta
New member
Registered: 2020-07-11
Posts: 1

Zelda-like screen scrolling?

I'm trying to get a screen scrolling system like the Zelda GB games, using gbdk. Here's an example: https://imgur.com/a/4GiLA8K The screen seems to load in one column at a time, drawing to where the camera is about to move to.

I tried just drawing the entire map where the camera was about to move but got this: https://imgur.com/a/SzPOp81 I was told this is because maps drawn past tile location 32 don't draw correctly.

So I've been trying to now load chunks of the map at a time to avoid this error, one column at a time seems the safest, but I just get garbled tiles. Does anyone know a system to implement this that I could copy?

Last edited by Dalta (2020-07-11 11:08:26)

Offline

 

#2 2020-07-12 02:51:24

0x7f
Member
Registered: 2019-11-24
Posts: 65

Re: Zelda-like screen scrolling?

Yes, you are correct. While scrolling you need to update the background layer columns. This video gives an example how to do it:

https://www.youtube.com/watch?v=sWG2AGZK8eY

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson