[squeakland] How Can I Change the "Grid spacing" on a playfield via a Script?

karl ramberg karlramberg at gmail.com
Sat May 29 10:27:53 EDT 2010


You can use:

self costume gridSpecPut: (0 @ 0 extent: 40 @ 40).
self costume changed

karl


On Sat, May 29, 2010 at 3:55 PM, Steve Thomas <sthomas1 at gosargon.com> wrote:

> I created a GeoBoard in Etoys, and want to change the size of a "Unit
> Square" so kids can see the same shape can be measured in different ways.
>  Yes, I know I can change the playfield grid spacing from the menu, but want
> to be able to change via a script.
>
> If no tile is available the, something I can paste into the text version of
> a script would be fine.
> If possible a simple sample project (.pr file) would greatly facilitate my,
> and others, understanding and ability to use)
> [image: Screen shot 2010-05-29 at 9.51.12 AM.png]to [image: Screen shot
> 2010-05-29 at 9.50.01 AM.png]
> via scripting tile: Playfield: Set Grid Spacing: 80 at 80
>
> Thanks,
> Stephen
>
> _______________________________________________
> squeakland mailing list
> squeakland at squeakland.org
> http://lists.squeakland.org/mailman/listinfo/squeakland
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakland.org/pipermail/squeakland/attachments/20100529/684ad594/attachment.html


More information about the squeakland mailing list