I use SPVAR to store information about an individual sprite (you only get 7 variables unfortunately). This would be information specific to a particular pedestrian. Line 19-25 is the sprite setup. Notice the SPFUNC call on line 24, and that the function name is in double quotes (that part threw me the first time). Lines 26-29 is the game loop with CALL SPRITE on line 27.