Squeak

 

Flying bird project 1

Page history last edited by aikidave 3 yrs ago

I'm trying to build a little eToy bird animation that starts flying from the

lower left corner of my screen and fades away in middle of the opposite side.

The animation is made of 3 alternating pictures, each one representing the

bird's wings in different positions (up, middle, low). I want the bird's size

to be decreasing, as if the bird is moving towards the horizon. I also want

the distance travelled in each flap of the wing to be proportional to the size

of the bird. How would you do that?

 

I had problems with the following operations:

 

  • I tried to make the bird fly towards a Sun that I have drawn at the right

side of the screen, but I couldn't make 'move toward' accept my Sun as an

argument

 

  • It seems to be impossible to make 'image forward by image's width / 2'. In

fact, I couldn't make any attribute receive the result of mathematical

operations performed on eToy object attributes.


Try this (I don't know if this is exactly what you are looking for but I

tried it on a Squeak plugin image and it satisfies your criteria below):

 

"Bird look like holder's value at cursor

Holder's cursor increase by 1

Bird move towards sun

Bird's scaleFactor decrease by 1 / 200"

 

This code was done purely with the etoy tiles.


To take pictures, bring up a world menu ("alt-shift-w" for pc), click on "new morph...," "grab patch from screen," and grab the picture you want.

Comments (0)

You don't have permission to comment on this page.