Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Object parameter Please help!
Old
guitarist
Guest
 
Status:
Posts: n/a
Question Object parameter Please help! - 11-07-2010, 12:25 PM

I'm trying to get a magician to make three objects disappear. I need to use an object parameter but I can't specifically reference any of the three objects in the parameter. I know how to create an object parameter but I can't seem to figure out which argument that I need to use for it. Any ideas? (I uploaded the a2w file so you can visualize what I'm talking about.)
Attached Files
File Type: a2w magicianworld.a2w (820.7 KB, 44 views)
   
Reply With Quote
RE: object parameter
Old
cmurphyart
Guest
 
Status:
Posts: n/a
Talking RE: object parameter - 11-08-2010, 09:09 AM

Create an object parameter at the world-level called makeDisappear. In the properties set the opacity to 0%. Tah dah!
   
Reply With Quote
Old
demetere
Junior Member
 
Status: Offline
Posts: 3
Join Date: Sep 2009
Default 11-09-2010, 07:19 AM

As this is a exercise #5 from the Gaddis book, reread the directions and/or review the chapter. If you check the magician, he already has a class-level method created, "makeDisappear". It actually has the parameter created too - if you look at the method, you'll see it's called "what". Marcello turns to face what and then what's isShowing is set to false.

When you want to make something disappear in your movie and use this method, it'll have you also pick the object you want (book / ball / bear) to disappear.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 11-09-2010, 06:49 PM

Here, you forgot to name what you want to act as the parameter in your "my first method" method. Look in the disappear method to see the changes that I made. If you want the objects to disappear faster, make the "Duration" of the change opacity to a shorter time, and you can change the "wait" time too. It is basically saying that at the same time, the magician will say the magic words and the 1 second after he starts to say it, the objects starts to disappear and will continue doing so for a duration of 6 seconds until it is fully invisible.
Attached Files
File Type: a2w magicianworld (1).a2w (825.2 KB, 82 views)


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
yaya
Guest
 
Status:
Posts: n/a
Default 11-11-2010, 01:07 AM

Im new to Alice.Whats paremeter and variable?What do they do?
   
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 ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.