Alice Community

Alice Community (
-   How Do I? (
-   -   event listener in Alice 3.1 (

sumeyra 10-12-2012 02: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 10: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...

Don Slater

sumeyra 10-15-2012 02: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 01:57 PM.

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