Scrolling Game Development Kit Forum

SGDK Version 1 => Help/FAQ => Topic started by: billybob884 on 2006-01-22, 08:55:40 PM

Title: inventory issue
Post by: billybob884 on 2006-01-22, 08:55:40 PM
sorry if im asking a whole lot at once, i'm just trying to get it all in before i forget about it. heres an interesting little hiccup my game is having. on the boss map, the score inventory isn't showing up correctly. well, to be specific, its the Score2 item, because i transferred all the score and life inventory to new ones, so it would appear that i repositioned them. anyway, the problem is when the score changes, it does not clear the previous number, but writes over it, so after a few number changes, all you have is a white block where each digit should be. i think i had this problem before, like a while back, but i was unable to find anything pertaining to this. ill try to post a rar'd version of hte game in a bit (with all the video and sound as "blank files".


---edit---

ok here it is,

ChameleonMan_COMPRESSED_TO_HELL.rar (http://s40.yousendit.com/d.aspx?id=13PTQ3CDBW68T01Y80AU3X04GM) (approx 7.1mb)

Instructions:
when you open it, everything goes into one folder, then once you open the game, youll go to the logo screen (i believe i substituted the video), so hopefully itll go right to the title screen. from there move up to start, but hold control when you press enter to go to the level select. then go all the way over to the right, look for a blue box with a red ship on it, thats the level where the inventory problem is; get underneath it and jump up. then that brings you to a map with a video i substituted out again, so that should just go to a blank map for a few seconds (this is where the "inventory transfer" occurs, then it automatically goes ot the next map, which is the boss level, where the problem is. you can see at the top all the inventory items, health's, score, lives, ect. well, the score is the problem, so just shoot teh boss a few times (alt key) to increase the sscore and you'll see what i mean.


on a side note, i dont know how the hell i'm gonna get this thing online once its done, its freakin huge. almost 160mb uncompressed so far. (i believe it was ~35 compressed)
Title: Re: inventory issue
Post by: bluemonkmn on 2006-01-22, 10:22:38 PM
I don't think I need to download the project to understand this problem.  I'm somewhat familiar with it.  Text is drawn transparently and therefore does not automatically clear itself after each frame at runtime, which results in the effect you are seeing.  There are a couple ways I think you can fix it:
Title: Re: inventory issue
Post by: billybob884 on 2006-01-22, 10:24:52 PM
the only thing i cant understand is that i have other inventory items that are jsut text, and they dont cause this problem..., but ill try putting a large black inventory item behind it tomorrow
Title: Re: inventory issue
Post by: Dr Obvious on 2006-01-22, 11:56:52 PM
Goo rule of thumb is to just make some sort of solid color background that you'll most likely never see, but in those cases where you're putting your inventory in some blank spot on the screen, it will come in handy and save you a lot of time trying to fix an easy problem (we all do it).
Title: Re: inventory issue
Post by: billybob884 on 2006-01-23, 12:36:21 PM
hmm how bout i just change the map setting, under where it says top for map display, i have it set to 32 for where the inventory goes, so i could just change it to 0 and put a black tiles up there right?

---edit---
ok, another problem fixed