En-V-Toys Children2 - If an object meets some another
From OFSET Wiki
Contents |
[edit] Conditional V-Scripts
In the preceding chapter, it was explained how the children could program displacements of one or more objects present on the screen, as soon as they are able to quantify these displacements. In this chapter we will be interested in a new type of operation, characteristic of the Etoys programming and which melts its originality:
In certain cases, if an object moves and meets some another, this meeting can cause changes of behaviors. In the Etoys version, formulas of tests included to L `interior of scripts make it possible to describe the conditions and the results of these meetings. In this device, there is often, but not obligatorily, two alternatives.
In script above, if the ellipse which moves regularly in straight line when one activates script with the clock, meets another object, a rectangle, (YES there are contact or collision) the ellipse changes color and deviates its trajectory of 90°. As soon as it exceeded the rectangle, (NOT there is no more contact), it takes again its initial color. But, the zones of test of Etoys scripts can also accomodate other opportunities which one will find the detail in the orders of the visualiseurs of each object.
V-toys propose, in their tool drawer, 2 bricks especially designed to manage collisions the made-to-order of the tests of Etoys. They are made up of an icon symbolizing a meeting between 2 objects joined with a container intended to receive one or more bricks of operation and they will propose an action or another when the collision takes place. They constitute an intermediate hybrid category between script and brick.
- One, that of left, are canned so that the actions are carried out when the two objects which are announced in the small squares of the icon, come into contact on the screen. It is necessary, for that, to move one or the other with the mouse.
- The other is identical but is placed inside a brick, which makes it possible to integrate it into a V-script and to register it in a process of programming. Its operation remains however sufficiently simple to be with the range of the children.
In one and the other case it is the object which one registers in the minis-désignateur the top (the square inside the small yellow ellipse) which starts the action while coming into contact, in a manual or programmed way, with the second object indicated in the square placed inside the green ellipse. This unit corresponds to the line of TEST of script (ellipse | intercession with | rectangle). The bricks which one will put inside the containers will return to the orders of the page of test placed opposite YES in shown Etoys script a little higher.
We will start by examining the simplest case, that which consists in manually putting an object in contact with another, because that approaches what was already proposed to the youngest children at the time of the operations of transformation (see chapter V-toys Enfants - level 1 (2nd part) ........), with a little more complexity in the construction industry of script and the effort of reflexion.
We will call this script, `script of contact' .
[edit] The SCRIPT OF CONTACT AND the ANECDOTE
[edit] Operation of the script of contact
Here its principles of programming:
That is to say 2 objects belonging to the same category, a star and an ellipse of which one has to touch the other. They were left the store of the accessories but they could have been all 2 manufactured on the Dessin screen.
- The object which touches (the pink star), is integrated into designator A.
- The object which is touched (the yellow ellipse) is integrated into the designator B.
Their meeting causes the action indicated by brick placed in the container, on the right.
- It is the object shown in the designator C (the yellow ellipse) who will move of 100 pixel.
But this object could be, as well, the pink star, or another object of the same category that one will have put on the screen. : The meeting between star and the ellipse could, possibly, cause the displacement of a rectangle placed elsewhere.
So that the child makes a success of the operation, it is necessary that it identifies the object which will change behavior to register it in the designator C of the order placed in the container.
But displacement is not the only opportunity which the container can accomodate, and the meeting can cause other effects (to change the color of the object indicated into C, to make him produce a sound, to make it disappear, to make it change form).
The originality of these exercises is the interactivity:
The action of the user who puts one of the two objects in contact with the other, causes a reaction of the second reason (noise, movement, change in form).
- to move the spider (or to ask someone else to do it) and to pose it on frog made be carried out script and frog reacts while croassant.
- it is necessary that the user touches pumpkin with the magic wand so that the pumpkin changes into fits with body
NB - not to forget that the BRICK OF TRANSFORMATION placed here in the script of contact functions only with objects created on Dessin space.
[edit] After the lesson of geography - to place the large towns of France
A chart of schematized France was recorded in the file of the images of Squeak. It was called on the screen and was worked over again on Dessin space.
NB. one finds the file of the images while clicking on key ESC of the keyboard to have the small WORLD. One clicks on NEW MORPH and one chooses the option `STARTING FROM a FILE'.
One will build a project to be divided, with instructions and which use the script of contact to place or make place by someone else the name of the large cities on the illustrated chart.
The project “large towns of France”
This process perhaps used in connection with other disciplines, other activities: a list of names, words, small drawings to be placed at the good, place.
[edit] Accounts and stories in image
In the exercises carried out until there, there was a moved object (the pencil in the preceding project, the rod, L `spider) whose contact with other objects caused a modification. So that there is account, it is necessary that the stage n° 2 mark a change compared to the stage N° 1 which is of anecdotic type.
- The contact of the spider with frog does it croasser.
- The magic action of the rod processes pumpkin.
Although very courts, these two examples are narrative because they tell an event whereas the action of the pencil on the chart of geography which is only operational, does not concern the account.
If one launches out in the account, one can make intervene more actors and vary the relations between the various speakers. But that will imply the use of several scripts of contact.
[edit] Presentation of the didactic project: HistoireEnImage which exposes, in an interactive way, reactions of a child vis-a-vis wine glass and a chocolate plate
The right part of the screen is the scene on which will be held the events. It introduces at the same time the instructions and the actors. The left part shows the successive stages by which will pass the objects which must undergo modifications, and an inactive example of the programming of various scripts necessary to obtain the course of the history . Real Scripts which make function the images were occulted for a better reading.
[edit] Course of the history and the detail of the programming:
The face of the child is touched alternatively by wine glass and a chocolate plate. It is, in turn, sad and merry, glass passes from full to vacuum, the chocolate plate whole or is nibbled. Actually, there are only 2 actions:
- the child drink wine (glass passes from the full state to the state empties) and its face goes from gaîté to sadness, which requires a script with 2 bricks shown here.
- the child eats chocolate, its face of sad becomes again merry and the chocolate plate which was whole is started, which there too requires a script with 2 bricks.
But we deal with interactive activity which must be able to be rejouée, lent to a buddy, sent to a correspondent elsewhere, on Internet, also it is necessary to be able to restore the things in their initial state, and each script of programming is accompanied by its script of repairing:
As in fact scripts of contact are used here, it will be necessary to find the object rational which will contribute to the return to the initial phase :
- glass in contact with the bottle fills of wine.
- the chocolate plate touched by the magic wand finds its integrity.
These small scripts of repairing are also a V-toys equivalent of the option NOT in the beaches of TEST of Etoys scripts
The History project In Image
One can try to follow the principles of this type of programming and to make compose by the children of small stories in image adapted to the age and the levels of competences. An example:
[edit] The théatre of Puppet
A simple example of a meeting in a small puppet theatre in 3parties:
- The curtain is closed
- Puppet comes to greet the public,
- The gendarme strikes Guignol
The passage from one scene to another is done by putting the star which activates script corresponding in contact with the small theatre.
NB. - the various drawings which were used to program scripts of contact were not left on the screen. Once the finished programming, they remain in memory and one can eliminate them by making them disappear with the handle in form from cross from their halation.
Details of manufacture - Of the different scenes can be built with separate elements which one gathers around common reasons. One captures then the scene created.
To carry out certain drawings with more facility, one can recommend to the children to trace them rather large on Dessin space and of to then reduce them to the desired size with the handle chestnut which is on the lateral side right of the screen.
The project Théatre de Guignol
[edit] TO PROGRAM MEETINGS - the BRICK OF CONTACT - V SCRIPT OF COLLISION
The brick of contact resembles the script of contact much. It is built to accomodate in its interior container the bricks which will indicate what will occur when one of the 2 objects of the collision will meet the other, with this difference that its formula is placed inside a brick which does not have a point of exclamation. Consequently, it cannot only be used and will have to fit in a V-script.
[edit] The construction of the script of collision
As we already saw, V-script is built while introducing manually with the mouse, the brick inside a container of orders. Here, it a double operation should be made:
- to introduce into the container of brick of contact, the brick corresponding to the change which will intervene when the collision takes place, (here a brick of change of color).
- When the brick of contact is ready, to introduce it into a container insulated to build the script of collision.
But the operation is not finished, because so that the collision takes place, it is necessary that there are meeting and thus displacement. It is thus necessary to program the displacement of one of the 2 objects.
[edit] Programming of the script of collision
One will have recourse to a brick of displacement which will be allotted to the object which will move (here the green star which moves of 10 pixels at the same time). This brick is introduced into the container of the script of collision and not into brick of contact and comes to be placed above brick from contact.
To obtain a displacement uninterrupted green star, it is enough to leave their drawer the two clocks which will be used for starting or stopping the script of collision.
One can replace brick of change of color by another brick, or even several, change the recipient of the modification, etc When the star meets the ellipse:
- the ellipse can move, or disappear,
- the star can change direction etc…
But the logic of the programming does not stop there. When the clock of starting is launched, the star continues its trajectory and runs up at the edge of the screen, or, if it meets the ellipse again, there is no more color to change, with the result that the small programmer can wonder: “What do I make now? ”.
So that the star continues to move in a coherent way, we know that if it meets the edge of the screen, it is necessary to add the brick rebounded or of the brick rolls up beside brick of displacement. When the collision makes change the ellipse of color, it is necessary to find a means pourqu' it finds its initial color. A simple solution will be able to consist in causing one 2nd collision with another object to find the initial situation. What wants to say that one 2nd brick of collision will have to be introduced inside script.
These theoretical principles can be applied to concrete cases. in relation to things seen in class or an idea of the child.
[edit] Some examples
Stockcar in the waste ground
The bee and the cherry tree
[edit] The tools V-toys children 6-10 years to be exerted
3 projects of work are proposed:
- a project for beginners - containing only bricks and the tiles in question in this series of texts to the exclusive use of the children from 6 to 10 years. A tool to work.
- the same project for beginners commented on - Each tool is qualified by its name and its characteristics are summarily pointed out.
- the project V-Toys children 6 - 10 years much more packed , with the use of the Masters and larger pupils eager to go further in programming.
RECOMMENDATION - It is better, when one wishes to once share a V-toy project it is finished, to eliminate to tioir it blue tools v-toys (it comes in supplement from the basic tools E-toys and weighs down the project) - or to keep only those which appear in the project.





