Science Fair Project
Hi, my son and I are new to scratch, however he has grasp the basic programming concepts of scratch. For his science fair projects he would like to guide a sprite through a maze given directions based on the sprite xy coordinates. Is there a block that will provide the sprite current xy coordinates to be used in a variable?
Thanks
Agentdtf and Slicer
Offline
Yep!
I'm assuming you want a robot in the program, not physically, so you can go to the Motion section of blocks for the
(x position)and
(y position)blocks.
Last edited by Firedrake969 (2013-02-04 16:15:03)
Offline
This block
([x position v] of [someSprite v])(in the sensing tab) will return the current x- or y-position of a selected sprite.
(x position)
(y position)(in the motion tab).
Last edited by amcerbu (2013-02-04 16:15:27)
Offline