I've coded this statement so when 'button A' is pressed the sprite rises 10 pixels. However I want to then bring the sprite down after 0.5 seconds. What I've tried means the man no longer jumps at all, could I have some suggestions on what to do?
if(pad.A_pressed() == true) {
y -= 10;
lcd.drawSprite(x,y,row,col,(int *)object);
lcd.clear();
wait_ms(500);
y += 10;
lcd.drawSprite(x,y,row,col,(int *)object);
lcd.clear();