Gotcha, well if there was a voting system +vote for you.
I was also wondering, I have this code:
if (dbUpKey())
{
dbPlayMusic(3);
dbSetSpriteFrame(1, 2);
}
if (dbDownKey())
{
dbStopMusic(3);
dbSetSpriteFrame(1, 1);
}
Here is my problem... When I push the up key the music plays (but doesn't stop until I push the down button. Thats fine). When I press the up key the sprite also animates to frame 2, which is my wanted reaction, but unlike the music it stops when the up button is released. How would I go about animating a sprite until the down key is pressed?
Thanks!
Learning C++
Proud member of www.codecall.com