Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Teaching with Alice (http://www.alice.org/community/forumdisplay.php?f=25)
-   -   Make fish move and go away when clicked on (http://www.alice.org/community/showthread.php?t=7044)

pureshooter98 08-03-2011 09:27 PM

Make fish move and go away when clicked on
 
Hello been going threw the book like crazy and cant find out how to make fish move and disappear when click on can anyone help me?:)

David B 08-04-2011 06:23 AM

[QUOTE=pureshooter98;40247]Hello been going threw the book like crazy and cant find out how to make fish move and disappear when click on can anyone help me?:)[/QUOTE]

You have to use an event and a method. Simply say that when the mouse is clicked on the fish, do the "my first method" method.

In this method put the code to make the fish move and disappear. (If you don't know how to make the fish move and disappear, let me know, and I will tell you how.)


All times are GMT -5. The time now is 03:51 PM.

Copyright ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.