Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Changing object parameter properties in a method (http://www.alice.org/community/showthread.php?t=872)

ryanmcfall 08-16-2007 07:53 AM

Changing object parameter properties in a method
 
Hi:

I've got a world method which takes an object as a parameter. I'd like to make the object invisible at the beginning of the method.

When I'm not using a parameter, I can select the object I want to hide, click on the Properties tab, and drag [B]isShowing [/B] into a method in order to change the value.

I can't find a way to do this with an object passed as a parameter. Is this possible and I'm just missing it?

DrJim 08-16-2007 12:05 PM

It's possible, but sometimes the "drag and drop" interface behaves a bit strange, or at least counterintuitive.

The best way is to set up the commands using a regular object and then substituting the parameter. If you are using a "part named" tag, you also have to be sure the object being passed does have the part.

ryanmcfall 08-21-2007 07:36 AM

Thanks, that works. I should have thought of that.

Ryan


All times are GMT -5. The time now is 11:58 PM.

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