ONE OBJECT, MANY SCRIPTS

We saw that a script is glued to an object. But we can glue many scripts to the same object.

Imagine that we would like to create a calculator doing sums and multiplications.

Opening the Viewer ot Out1 we an drag to the desktop an empty script, open the editor window and write the new script. Look the figure:

DON'T FORGET THE "accept"!

And, interesting: we now can use In1 and In2 in the script without need to drag a line of their Viewers.

We create a new button, save the project etc. etc.

Play our project:




PREVIOUS LESSON NEXT LESSON
T. CONTENTS HOMEPAGE