User:HoboPrimate

From OLPC
Revision as of 20:48, 27 June 2007 by HoboPrimate (talk | contribs) (→‎Etoys: worked it out.)
Jump to navigation Jump to search

About me

My name is Eduardo Silva (do not mistake with me another Eduardo Silva highly involved with the project).

pt Este usuário é um falante nativo do português.



Stuff

Spoon-Sugar.svg - An icon for a culinary-like Activity, like Cook, or other. Not yet Sugarized, and work in progress. No sure though if such an activity would be necessary. A kid/parent could create a recipe in Write, and tag it appropriately (recipe chocolate cake).

Random Notes

Etoys

In Etoys, I want a player to move forward 5 steps a certain amount of times. But in succession, i.e, 5 steps forward, then +5 steps forward, etc. If in the same script I put "Repeat 5 times - Do forward 5", it will be the same as "forward 25" If I try create 2 scripts for the player, "player scriptA" contains "player forward by 5", and "player scriptB" contains "Repeat 5 times - Do scriptA", it also moves once 25 pixels. I can explain what and why I want to do this. I want to have an ovni to move a randon number of times in a direction, then a random number of times in another, and so on infinity. oh, and in random directions as well.

Figured a way by by looking at the Welcome Screen car script of the OLPC etoys.
I created a red polygon square around the screen. Then used this code for the Ovni script (Following the etoys look):
Test ovni's <blue> color sees <red> color
Yes ovni's forwardDirection decrease by (91 + random (90))
ovni forward by 10
No
ovni forward by 10
ovni bounce silence

There may be a better way, but right now this is how I did it.