Alice Community  

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

Reply
 
Thread Tools Display Modes
chapter 6 excerise 9
Old
disha666
Junior Member
 
Status: Offline
Posts: 2
Join Date: Dec 2011
Default chapter 6 excerise 9 - 01-16-2012, 04:54 PM

in the program, when i try 2 check wid a function whether cleverSkater is skating over the hole , and if it is it will move downwards and a sound will played..

fr some reason my program isznt working... plzzz help me ASAP!!!

the code is as follows:
if celverSkater is below the hole
do cleverSkater move down down 5 meter
CleverSkater play sound
else
do nothing
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 01-16-2012, 06:46 PM

I'm going to guess that your problem is that when you do an if/else statement, it checks the if/else condition once, and then never touches it again. To fix, either put the if/else statement in an infinite loop, or put it in the "during" part of a "while the world is running" event.


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
my attached program
Old
disha666
Junior Member
 
Status: Offline
Posts: 2
Join Date: Dec 2011
Default my attached program - 01-16-2012, 07:06 PM

my attached program
Attached Files
File Type: a2w Ch 6 ex 9.a2w (636.4 KB, 60 views)
   
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.