i am trying to make aan animation for my game in DrRacket, when i press the left button i want my image to do a running animation (legs open --> legs closed). Is there a way i can delay the image swap? The computer does the swap soo fast that you dont see the swap happening. -->
(define (keyboard-function key)
(cond ((eq? key 'left) (tekenaar 'mario-next!)
((mario-adt 'move) 'left)
(tekenaar 'mario-next!))
((eq? key 'right) ((mario-adt 'move) 'right)
(tekenaar 'mario-next!))
(else (void))))
Thanks