PDA

View Full Version : I need help understanding how to make a parameter work in this please help!


xxledzeppelin2x3
10-28-2009, 07:31 AM
A magician is performing a levitation illusion in which [U]objects seem to rise[U] magically into the air.

The magician (People) points a magic wand (Objects) at his assistant (Girl from people folder) and she gently rises into the air and then floats back down to her original position on the table (Furniture on web gallery)

Then the magician performs the same trick with the rabbit (Animals). The rabbit, being a lighter object, floats up higher than the magician's assistant. Because the magician's assistant and rabbit are each to levitate (Rise or float) in the same way, use a single method and use parameters (which-object) to communicate wich object will float and the distance the object is to move upward and back down.

HINT:the magician's assistant is reclining on the surface of the table. A move up instruction will cause the assistant to move up from her point of view (Meaning her head will move toward the wall). Use [U]as seen by ground[U] so she stays in a horizontal position as she floats up in the magic trick.

Can anyone help me with this pleaseeee i don't understand!

thanks, Trevor

x2495iiii
10-28-2009, 01:26 PM
It explains it very well acutally (by the way DON'T use the magician in your world, it's one of the buggy models that can corrupt your world. Build your own character, give him a black suit, and add the top hat and magic wand to him to make him look the part). What part don't you understand? Creating parameters? To create parameters, you do the same thing you'd do to create a variable, just click the button on the right of the screen when editing the levitation method and choose what parameter type you want (you want object).

xxledzeppelin2x3
10-28-2009, 05:15 PM
thanks, i know how to create a parameter and what one to use but i have never used them before and i dont know how to make them work so that the rabbit moves higher in the air and stuff like that :( can you explain that a little bit because it is due tommorow :eek:

thank you, Trevor

x2495iiii
10-28-2009, 10:46 PM
Well, I don't know if this is in time, but you're supposed to pass both a number and an object in as two different parameters. Now, whenever you call the levitate method (which you'll need to call twice from inside myFirstMethod), it'll ask for an object and a number. Just put the assistant first and any reasonable number (like 2), then put the bunny second and put a higher number (like 4).

xxledzeppelin2x3
10-29-2009, 03:03 PM
uhmm i still don't understand :( , im sorry for my lack of intelligence, i just dont understand parameters, please please please is there any way you can make me a little demo on this project on how i would use parameters (im not asking you to do it for me but maybe use other objects in a different example like maybe a monkey jumping 2 meters and a person jumping 1 with a parameter or something like that).


Thanks sooo much x2495iiii for all of the help you have given me in the present and past :) , Trevor

x2495iiii
10-29-2009, 09:14 PM
I can, but it'll probably be tomorrow. Right now I'm trying to fix one of my computers and I'm afraid that running Alice may make the cleanup program slow or freeze.

xxledzeppelin2x3
10-30-2009, 02:08 PM
ok thanks, thats fine because i have gotten the whole weekend to do it now because my teacher wasnt here once again and i have now until monday! :)