Hi Luis - thanks so much for writing! As you might imagine, changing what's displayed onscreen is going to require modification to the
draw-state function. Specifically, you'll be needing to use
put-image to layer
another image on top of everything else. This other image is going to be
Sam's coordinates.
I'd try the following:
1) Use the text function to make an image of the text "X: 42, Y: 100" (note: the whole thing - including the numbers - is just one big string)
2) Use the text and num-to-string function together to make an image of a string that includes real numbers.
3) Use your solution to #2 inside draw-state, so you see those same (unchanging) numbers when you run the animation
4) Replace those numbers with the fields from a-char
Let us know how it goes - and if you get stuck on one of these, let us know which one!
Emmanuel