#8893 - Daikath - Wed Jul 23, 2003 11:51 am
I am making this game wich has a set of sprites on screen (10 in total) wich are 8x16 and blue. They are supposed to give an indication of how much time a person has left before it is too late.
The problem is with my getting it properly displayed. I have used a global s16 variable wich helps me getting the right number of sprites displayed. When I leave that variable alone I see another sprite animating as it should and the timer (one sprite for the timer for now) as it should.
But when I put in the keypad function
I only see the sprite for a second and then it is gone without me pressing a button.
The timerfunc variable is only used for this occasion.
Can someone tell me what is going wrong here?
_________________
?There are no stupid questions but there are a LOT of inquisitive idiots.?
The problem is with my getting it properly displayed. I have used a global s16 variable wich helps me getting the right number of sprites displayed. When I leave that variable alone I see another sprite animating as it should and the timer (one sprite for the timer for now) as it should.
But when I put in the keypad function
Code: |
void keypad(void) { if (KEYS & KEY_A) { timerfunc--; } } |
I only see the sprite for a second and then it is gone without me pressing a button.
The timerfunc variable is only used for this occasion.
Can someone tell me what is going wrong here?
_________________
?There are no stupid questions but there are a LOT of inquisitive idiots.?