Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   How do I add an event to a method or simulate what I'm attempting to do (http://www.alice.org/community/showthread.php?t=7214)

jimm 09-12-2011 12:29 PM

How do I add an event to a method or simulate what I'm attempting to do
 
I have some events on the World level... these events will cause different objects (4 of them) to disappear if the selected object is clicked on... opacity is set to 0.

I also have a method that loops through another method... the effect that you see these 4 objects move back and forth 4 times.

The top method loops the inner method which moves the objects back and forth... The problem is that I want to make the objects disappear IF the user clicks on them (in other words, I want to combine the action of the objects moving back and forth with the events that cause the objects to disappear.

So far, I have not found a way to do this... ALICE won't let me copy the events into the methods...

Is there a way to do what I want? Allow the 4 objects to move back and forth and then while moving back and forth if the user clicks on one of the objects, that object will disappear?

Thanks!
Jim


All times are GMT -5. The time now is 09:06 PM.

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