PDA

View Full Version : event listener in Alice 3.1


sumeyra
10-12-2012, 03:41 PM
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
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,