hi guys,
i'm new to this forum and i need some help plz
i have to make a application game for my study but i can't figure out the error...
i want to try to make an inventory, which will open when you press "b"-key and it closes again when u press it again...
this is what i have:
if(dbKeyState(48) == 1 && backpack == 0)
{
dbShowSprite(26);
dbSprite(26, 10, 10, 26);
backpack = 1;
}
if(dbKeyState(48) == 1 && backpack == 1)
{
dbHideSprite(26);
backpack = 0;
}
backpack is the variable i picked to use, and 26 is the sprite ofcourse.
Hopefully is there someone who can help me
thanx a lot in advance!!!
Bram