Page 54 - 2501_KVS_C-5
P. 54
5.5.1.3 “go to sprite-name”
This option is used to move the sprite to the location of the sprite selected
from the drop-down list. All the sprite names in the project will appear in the
drop-down list.
5.5.2 “go to x … y…” block
“go to x…y...” block is used to move the sprite at the given (x, y) position.
5.5.3 “change x by…” block
This block is used to change only the x value of the sprite by a specific value.
It moves the sprite for specific steps horizontally only.
5.5.4 “change y by…” block
This block is used to change only the y value of the sprite by a specific value.
It moves the sprite for specific steps vertically only.
5.5.5 “set x to…” block
This block is used to sets the sprite’s X position by the given value. It moves the
sprite horizontally to particular position.
5.5.6 “set y to…” block
This block is used to sets the sprite’s Y position by the given value. It moves the
sprite vertically to particular position.
Example is:-
● Position of the sprite at (X: 0 and Y: 0) location (center of stage), as shown in
Figure 5.10.
● Position of the sprite at (X: 100 and Y: 50) location in stage, as shown in Figure
5.11.
Fig. 5.10 Fig. 5.11
52 KVS DELHI REGION 2025

