#174816 - Kensai - Wed Jul 21, 2010 9:42 am
There is an inventory in my game which shows the items one of my party members is carring. Each item (sword, armor, etc.) is represented by a 16x16 sprite. If I press a shoulder button the inventory of the next/prev hero is displayed - which means, all sprites have to be overwritten. And here is the problem: If I overwrite the sprites, some of them appear simulanously on the screen (they simply pop up IN NO TIME - even if I decreasy the framerate to 10%) while others show up with a visible delay. I don't understand whats going on there. Shouldn't they ALL pop up simulanously OR being ALL displayed one after another? How can I solve this problem? Do I have to draw the sprites off-screen or is there another method?
Code: |
Inventory 1: ___ ___ ___ | | | | | 1 | 1 | 1 | |___|___|___| | | | | | 1 | 1 | 1 | |___|___|___| You see this picture for a brief moment: ___ ___ ___ | | | | | 2 | 2 | 2 | |___|___|___| | | | | | 2 | 2 | 1 | |___|___|___| The first five items are displayed in no time while the sixth item is delayed. Inventory 2: ___ ___ ___ | | | | | 2 | 2 | 2 | |___|___|___| | | | | | 2 | 2 | 2 | |___|___|___| |