Alice Community  

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

Reply
 
Thread Tools Display Modes
is above function
Old
compstuft
Guest
 
Status:
Posts: n/a
Default is above function - 09-30-2008, 01:14 AM

Hi Alice community,

I have just started Alice at school, and for our first assignment, we have to get these crates to drop onto a carrier IF AND ONLY IF the blimp is above a carrier (there are 3). Well, I got the crate to drop with: If blimp is above carrier(x)..., but now, the crate just drops every few seconds even if it isn't above carrier(x). I think I need to set it so that the crate only drops when the blimp is DIRECTLY above a carrier. Can someone please help me with that? Thanks

Last edited by compstuft; 09-30-2008 at 03:55 AM. Reason: Got it to work
   
Reply With Quote
Old
rich0e0rick
Senior Member
 
rich0e0rick's Avatar
 
Status: Offline
Posts: 141
Join Date: Jan 2008
Location: Sturgeon Falls
Default 09-30-2008, 09:35 AM

try this, make it so that the crate only drop if the blimp is not to the right of the carrier, not to the left, not to the front or the back.... this makes it almost have to be in the center no?, and then make the above function.... but all this in one if statement (you'll have to use lots of OR's)

rick
Attached Images
File Type: jpg untitled.JPG (79.5 KB, 62 views)


im back!!! FINNALY!!! got windows working on my mac again!!!
   
Reply With Quote
Old
compstuft
Guest
 
Status:
Posts: n/a
Default 10-01-2008, 02:24 AM

Thank you so much. I tried this and my crates are still dropping at random times. I must be doing something wrong. I will go back and double check. Thanks again
   
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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.