Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Assignment 4
Junior Member
Status: Offline
Posts: 12
Join Date: Jul 2018
Default Assignment 4 - 07-18-2018, 01:50 PM

For my assignment I did a pilgrim theme. Several pilgrims accused one of their own as a witch and burn her alive while she struggles, jumps up and down, and sings the silly boom boom song. It went fairly well. I can usually figure out any problems I have. First I had the other pilgrims do their "burn the witch" dialogue using simple, separate say methods. Then, I got to the tough stuff. There's a lot that goes on at once so I used one big Do Together statement. In the special effects section of the gallery you can find fire. I placed it ontop of my unfortunate victim and set the opacity to 0% to hide it. Later we'll make it appear by using a method to set it up to 50%. I did the same with a skeleton model to create the illusion of her being burned to bones towards the end. I placed it ontop of her and set opacity to 0%. The fire object comes with a built in method called Spin like crazy that uses random number functions and infinite loops to make the fire move. I combined that with a method to set opacity to 50%, named it Fire! and set it activate along with my struggle method.

Struggle is just a couple of set poses combined into a method and looped ten time using the loop statement.

I had her sing the song by making the boom boom method as suggested but also combining that method with lines from the verses to make boomboom1, boomboom2, and boomboom3. It saves space visually and makes my code easier to look at. These are spaced inbetween my jump methods which I copied from page 31 chapter 2 of the text book. Define a variable to determine the height of the jump, use the random number function in the world object to set the value of that variable in a method. Then plug that variable into the move up and move down methods in your jump method. I called mine, height.

After she finished her song I put in a method called death that sets her opacity to 0% causing her to disappear, moves her down 1.5 meters to drop her through the ground out of the view of the camera (Her invisible self was blocking the view of the skeleton object causing it to become partially invisible too.) Then the method hides the fire and reveals the burnt skeleton by changing opacity parameters. There are all set to do together so it looks more seamless.

Then I had one of the onlookers say lol.

Note: In order to do other things I had to set the infinite loops in the Spin like crazy method inside of my Fire! method to stop at ten. There may have been another way to do this, but it worked fine for what I needed. Alice didn't want to run any new methods while other ones were infinitely looping.
Reply With Quote

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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.