-
Drake
- Posts: 2
- Joined: Tue Jun 14, 2011 10:17 pm
Post
by Drake » Wed Oct 10, 2012 10:52 pm
Hello everyone

I am here because I cannot find a way to clear a tiled background I have stored in memory.
I need to clear the background map to allow the loading of another background (to move to another level in the game).
Any help would be really apreciated

thanks!
-
elhobbs
- Posts: 358
- Joined: Thu Jul 02, 2009 1:19 pm
Post
by elhobbs » Fri Oct 12, 2012 12:05 am
Why do you need to clear? Just load the new background over the old one.
-
Drake
- Posts: 2
- Joined: Tue Jun 14, 2011 10:17 pm
Post
by Drake » Fri Oct 12, 2012 2:43 pm
I have tried but sometimes I get unwanted results as shifted background or game getting stuck...the problem might be somewhere else though...I will try to remove my attempts of clearing it and see what happens
thanks a lot
-
Foxi4
- Posts: 14
- Joined: Wed Feb 22, 2012 10:49 pm
Post
by Foxi4 » Sat Nov 10, 2012 1:23 pm
Techincally you could clear the entirety of the bank by re-initializing it. Another method is to simply fill in the bank with blank data, starting from the adress the background begins and of the sizeof(BackgroundYouWantToClear);, however I don't see how this could be beneficial to you.
When a new background is placed within VRAM, it overwrites the old one, and unless you direcctly access the left-over tiles in question, they should not cause you any grief.
Who is online
Users browsing this forum: No registered users and 7 guests