Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How Do I? (http://www.alice.org/community/forumdisplay.php?f=28)
-   -   Assign 6 - Bottles of Pop? (http://www.alice.org/community/showthread.php?t=12026)

jkidd 06-27-2018 05:13 PM

Assign 6 - Bottles of Pop?
 
Hey guys -

I'm trying to make a character in my Alice world sing the "99 Bottles of Pop" song.

I'm needing to use as few statements as possible. Wouldn't I use either the "loop" or "while" statements to do this?

Here is a screen shot of my method in Alice: [URL="https://image.ibb.co/mJRS28/Pop1.jpg"]https://image.ibb.co/mJRS28/Pop1.jpg[/URL]

What am I doing wrong? I guess I'm not good at this, as it is confusing to me. :/

- jkidd

chickentree 06-28-2018 03:23 PM

[QUOTE=jkidd;58102]Hey guys -

I'm trying to make a character in my Alice world sing the "99 Bottles of Pop" song.

I'm needing to use as few statements as possible. Wouldn't I use either the "loop" or "while" statements to do this?

Here is a screen shot of my method in Alice: [URL="https://image.ibb.co/mJRS28/Pop1.jpg"]https://image.ibb.co/mJRS28/Pop1.jpg[/URL]

What am I doing wrong? I guess I'm not good at this, as it is confusing to me. :/

- jkidd[/QUOTE]

You need to use the string functions (in world functions) to add the number of bottles to your lyrics.
You also need an object to say the lyric so it will show up in the movie.
Again think about what the code you wrote is doing and what you want it to do.

Mark


All times are GMT -5. The time now is 08:26 AM.

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