Quote from: Dr.Alban on Tue 03/06/2008 01:18:49
function game_start() {
invMain.ItemWidth = 50;
invMain.ItemHeight = 30;
initialize_control_panel();
KeyboardMovement.SetMode(eKeyboardMovement_Tapping);
}
No, this is definitely right.
I suspect your problem has to do with the sprites you use.
The lines invMain.ItemWidth = 50; & invMain.ItemHeight = 30; tell AGS your inventory items are never bigger than 50 pixels wide and 30 pixels high.
So what you need to do is check how wide in pixels your widest inventory sprite is and enter that number (or larger) after invMain.ItemWidth = . The same with the height.
That should take care of the overlapping.