Image bm126.GIF Horizontal position of Peter
Peter
 
The horizontal position of Peter element represents Peter's coordinate in the horizontal direction on the sheet. The element can be treated as a normal numeric variable. By using it in a numeric term Peter's present coordinate (changing during the shift to a new position) can be found out. By using the element as a command a new horizontal coordinate of Peter can be set. If Peter is not visible, he will shift to the new position immediately. If he is visible, he will start shifting in an animated condition according to the Peter sprite definition. By doing this, he will not wait for completing the former shift; the shift will start immediately. The commands to change the horizontal and the vertical coordinates may be entered immediately one after another, thus accomplishing the shift to the destination position in the diagonal direction. If Peter needs to be stopped, it may be done so by setting a new position to his current position (i.e. to assign the coordinates to themselves). Unlike in case of the command for executing a step it is now possible to shift Peter even outside the sheet or to accomplish the shift without the necessity of waiting for the movement completion.

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