Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How Do I? (http://www.alice.org/community/forumdisplay.php?f=28)
-   -   How can I have an object name from an array? (http://www.alice.org/community/showthread.php?t=12291)

humpbacks1962 10-05-2021 02:13 PM

How can I have an object name from an array?
 
I have an object that needs to call out items disappearing from a list. I am setting their opacity to 0, and I should call out what will disappear in the same order it will disappear.
How can I do this?

djslater107 10-06-2021 08:42 AM

An object name in an array
 
If I understand your question, ,you know how to set the opacity of the disappearing object to 0, as in

<item>.setOPacity(0)

What happens when you have the naming object say <item>, as in

<namingObject>.say("object: " + <item>);

You probably need to have some sort of String (like "object: " to add the disappearing object name).

Let me know if this is not quite your question, at [email]don@alice.org[/email]


All times are GMT -5. The time now is 04:16 PM.

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