Image bm143.GIF Item in front of Lucy
Lucy
 
The item in front of Lucy element represents an item on a square in front of Lucy. As a square in front of Lucy a square is considered that is located at a distance of one step from Lucy in the direction of her orientation. By redefining the Lucy sprite the number of orientations can be raised to 8, thus making the squares in the diagonal direction accessible, too.
 
The element of the item in front of Lucy can be treated as a normal logic variable of an item. By using it in a term containing items the contents of the square in front of Lucy can be tested. If the square in front of Lucy is situated outside the sheet, the item of the sheet border is returned. By using it as a command the item on the square in front of Lucy can be adjusted. In case a preceding command to step or to shift to a specified coordinate has been given Lucy will first finish the shift before the item change can be achieved.

Full Html Context Help of The Peter - Gemtree Software & Children Programming