Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How Do I? (http://www.alice.org/community/forumdisplay.php?f=28)
-   -   event listener in Alice 3.1 (http://www.alice.org/community/showthread.php?t=9547)

sumeyra 10-12-2012 03:41 PM

event listener in Alice 3.1
 
Does anyone know how to work with mouse listener?

I'm having trouble with mouse listener. I'm trying to use mouseclickonobject listener, but I cannot specify an object. It works when I click on any object, but I want the animation to do different things when each object clicked. I couldn't figure out how to do it.

djslater107 10-12-2012 11:31 PM

event listener in Alice 3.1
 
Sadly, we have not yet completed implementing this feature, due to work we are doing with types...

You will need to write a conditional that specifically tests for each possible object, that you are interested in, and responding appropriately...

Sorry,
Don Slater

sumeyra 10-15-2012 03:46 PM

I tried what you said. It is a long code line, but it worked though.

Thank you,


All times are GMT -5. The time now is 02:00 AM.

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