Recently, one of the educational mailing lists that participated came a call for assistance. Specifically requested Etoys file used in a presentation for TED , that place where big gurus have a master class. The presentation in question was the following:
(This video is amazing, and also can select subtitles in English).
From my point of view, there existed very capable people who could well have answered the query, especially the urgency for that person. But the answers led to something like: "It's something that even a child could do."
Two days later, the issue had mutated and was radically as to make the requested animation Turtle gamemaker or art. It definitely was out to get the file used in the presentation.
So it was that I set to work to answer the query. As a reminder (and if someone else will do) record the process (still in process) to re-create the above animation.
Process Description (How to)
- Playing with the elements available in Etoys a geometric structure consisting of a right triangle, square their supported on each side and the triangles needed to complete a square around it. (Trivial, it should not require special skills to do it.)
the triangles for green building to go to Supplies>> Basic>> Poligono
Get the halos, go to the white halo and select "show handles"
and since we're here, is a good idea to select "Handler address" as we shall see later.
- Replicate this structure to the right of the previous figure excluding the squares of the legs on a square background to serve us. (Identical to the above process, the only tip would be stuck to the bottom left (locked) the largest square, so it will not come to the fore if accidentally punctured or drag.
- Now comes the good. What we need according to Example the video is that the upper triangle of the right figure to touch the hipotunesas fall of the triangles below.
This has a couple of tips. Normally the figures or bring Etoys's sketches created in the "Rotation center" to center. To make the figure turn against one of its vertices have to move the center of gravity up there. This is achieved as shown in the picture, holding down the shift key and dragging the center of gravity.
That said, we can do something like this: We have 2 scripts. The first is in charge of placing everything in its place. In this type of animation is much trial and error, so this script has the function of reconstructing the position of the figures if something does not work as expected. The second script is responsible for managing the fall of the triangle. The condition must be met for this script to stop is that the angular direction is = 270. There are many ways to condition the output of the loop, this was the most accurate that I found.
Now create a third script that pulls down the other triangle but counterclockwise.
To shoot the final script that makes flying the squares of the legs to their final location, I think of 2 solutions. The most blatant
would put a retarder (Delay) to "do nothing" until the triangles fall.
The other, cleaner than the previous one would put a flag (flag) in the condition of the triangles to the expiration of their condition changes of state and is the pair of flags above the condition that begins the final script. Still not decided.
Finally, hide all the scripts and make an invisible button to launch the animation.
0 comments:
Post a Comment