Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 02-23-2010, 05:33 PM

No, the whole reason why I was posting is because it is not how long the sound is. Even after the penguin is done moving and making the sound, there is a random 1 second wait that comes from nowhere and I was wondering where it came from. Then zonedabone told me it is because the sounds have a queue, so that is the reason.


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
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 02-23-2010, 06:00 PM

I thought it would just be alices problem


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 578
Join Date: Nov 2008
Location: In the interwebs
Default 02-24-2010, 04:01 PM

Actually, there might be some white noise as the tend of the file. I've no time to check, though. In fact, I don't know how to. Good luck!


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 02-24-2010, 04:13 PM

No, the file is exactly 0.1-0.2 seconds long each of them. It is not white noise or the sound file would show that in the amount of seconds. Plus, the animation for the penguin to close their mouth comes AFTER the sound is finished playing, so white noise cannot be it. It must be what you suggested before.


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
sound is intemittent
Old
jnawrocki
Member
 
Status: Offline
Posts: 32
Join Date: Jan 2010
Location: Toledo, OH
Default sound is intemittent - 02-24-2010, 05:37 PM

Thank you everyone for all your suggestions. I'll keep working at the penguin game.

Dameria, would you mind if I used your Tic Tac Toe game as a way to interest students in a review. I will certainly give you credit for writing it and I will not change it. I would ask questions; if answered correctly, students can earn X or O.

Thanks
Jane
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 02-24-2010, 05:51 PM

Are you kidding me? I would be thrilled if someone used one of my programs in their class.

I love it when people like my programs, please do use it! Thank you


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
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 02-24-2010, 06:15 PM

I think I can fix the world, actually. Hold on a sec...


(')>
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 02-24-2010, 06:19 PM

Dun du du dun! Super moderator to the rescue!!!


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
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 02-24-2010, 07:00 PM

Alright, I got it to work. I noticed three speed problems.

1. The "For all in order..." method of comparison is efficient but slow. I replaced this with a do together containing an if/else if for each penguin, much less streamlined, but much faster.

2. If there's a possibility that the penguins could be singing notes at nearly the same time, with a delay so small that the first penguin that was clicked wouldn't be finished singing yet, the method must be changed in order to allow for this possibility. I changed it to set a boolean variable to true based on which penguin was clicked, then added an event for each penguin that activates when that boolean is set to true. This way, the sing method, having done it's job, can be called once more when it's changed the value of the variable.

3. The biggest problem, and probably the major reason behind the delays, was the "insert <item> at end of list" method. It was set to a duration of one second, not zero.

Here's the fixed product!
Attached Files
File Type: a2w PenguinSimonV3.a2w (934.0 KB, 11 views)


(')>
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 02-24-2010, 07:55 PM

Quote:
Originally Posted by x2495iiii View Post
Alright, I got it to work. I noticed three speed problems.

1. The "For all in order..." method of comparison is efficient but slow. I replaced this with a do together containing an if/else if for each penguin, much less streamlined, but much faster.

2. If there's a possibility that the penguins could be singing notes at nearly the same time, with a delay so small that the first penguin that was clicked wouldn't be finished singing yet, the method must be changed in order to allow for this possibility. I changed it to set a boolean variable to true based on which penguin was clicked, then added an event for each penguin that activates when that boolean is set to true. This way, the sing method, having done it's job, can be called once more when it's changed the value of the variable.

3. The biggest problem, and probably the major reason behind the delays, was the "insert <item> at end of list" method. It was set to a duration of one second, not zero.

Here's the fixed product!
In the future i will be fixing these problems mroe. Im going for a moderator job. Im on Alice 16/7


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
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 ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.