[etoys-dev] Future Release feature: A slide/glide tile

Steve Thomas sthomas1 at gosargon.com
Tue Feb 28 07:33:16 EST 2012


On Tue, Feb 28, 2012 at 9:01 AM, Bert Freudenberg <bert at freudenbergs.de>wrote:

> On 28.02.2012, at 08:09, Steve Thomas wrote:
>
> > On Mon, Feb 27, 2012 at 3:10 PM, Bert Freudenberg <bert at freudenbergs.de>
> wrote:
> >
> >> The execution models of Etoys and Scratch are fundamentally different.
> In Etoys, all tiles in a script are executed in the same time step. You
> cannot have an individual tile take time. That's why there is no "wait"
> tile. That's why you can't do animation with the "repeat" tile. Etc.
> >> Unless/until someone adds that capability, you can't have a slide tile
> either. (The single-stepping mechanism might be a step (pun intended) in
> that direction)
> >
> > Okay, eventually I will get my head around this execution model (then
> I'll try tackling the one for Kedama ;)  But, I think I get your point and
> I was not asking for a wait tile (well perhaps I don't get it, but I plunge
> on blissfully ignorant of my own ignorance...)
>
> Your proposed glide tile would be equivalent to a wait tile, in that it
> takes time. The tile after the glide tile in the same script would only be
> executed after the glide tile finishes. That's how this kind of tiles work
> in Scratch. I agree it's convenient. You can easily script "stories" (glide
> there in 1 sec, say something for 1 sec, come back in 1 sec) or play
> melodies (note C for 0.5 secs, then a D for 0.5 s etc). In Etoys you don't
> "script" objects from the outside (do this, then that, then that) as much
> as provide "behavior" for them (in any given situation, here's what you do).
>
> Or did I misunderstand your proposal?
>
Correct I do not expect the script to "wait" mid execution, until the glide
completes, the glide tile is more like a start tile (in fact thats what I
used in my prototype).
Providing kids a method to synchronize events is a whole separate request,
but I haven't figured out a good way to do that yet.

So I took the project I created (attached to
SQ-1021<http://tracker.squeakland.org/browse/SQ-1021>) and
added a tile to change the color of a Rectangle after my glide tiles.
[image: Inline image 1]
oneGlide and twoGlide basically call a script to set my GlidePlayers
variables (Player to glide, target value and #secs), then makes a copy of
itself and execute the copies script to "glide".

When executed, the gliding starts and the Rectangle changes color in the
same cycle/step.

Stephen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/etoys-dev/attachments/20120228/221b3605/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen shot 2012-02-28 at 9.16.18 AM.png
Type: image/png
Size: 14644 bytes
Desc: not available
URL: <http://lists.squeakland.org/pipermail/etoys-dev/attachments/20120228/221b3605/attachment-0001.png>


More information about the etoys-dev mailing list