Saving the route of the mouse/player


for purposes of analysis i want to be able to automatically save in a file the route the players take through a maze (to compare routes between players and trials). any ideas about how i should go about doing this?

(I saw (and tried) that one could save the route as an IPO, but that 1. takes up a lot of time. 2. tracks everything in the scene and not just the player. 3. i need somthing that can be saved for a runtime file and not from within the development environmet (like some kind of storage file that can be saved automatically) )

thanks in advance,

You could just append the position of the player to a list each frame, and then dump it to a file at the end. If you don’t know python already I suggest you start with something simpler, however.