Alice Community  

Go Back   Alice Community > Alice 3 > How Do I?

Reply
 
Thread Tools Display Modes
event listener in Alice 3.1
Old
sumeyra
Junior Member
 
Status: Offline
Posts: 2
Join Date: Oct 2012
Default event listener in Alice 3.1 - 10-12-2012, 02: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.
   
Reply With Quote
event listener in Alice 3.1
Old
djslater107
Administrator
 
Status: Offline
Posts: 190
Join Date: Jan 2007
Default event listener in Alice 3.1 - 10-12-2012, 10: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


Don Slater
Alice Team
Carnegie Mellon University
   
Reply With Quote
Old
sumeyra
Junior Member
 
Status: Offline
Posts: 2
Join Date: Oct 2012
Default 10-15-2012, 02:46 PM

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

Thank you,
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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