Alice Community  

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

Reply
 
Thread Tools Display Modes
Creating and If or Else statement
Old
bigfish303
Junior Member
 
Status: Offline
Posts: 2
Join Date: Oct 2011
Smile Creating and If or Else statement - 10-14-2011, 02:00 AM

I am banging my head on the table about a project I am doing. I am trying to figure out how to make alice go to either the cat or the rabbit based on the closest one. If the cat is closer go to it or go to the rabbit if it's closer. I have to use a world method i creating that includes a mover(who is moving) and a target. Please help! Thank you!
   
Reply With Quote
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default 10-14-2011, 02:08 AM

I can't really help you considering you haven't posted the world.
but one tip is to always loop an if else method.


:D
   
Reply With Quote
here is my world that I am working on
Old
bigfish303
Junior Member
 
Status: Offline
Posts: 2
Join Date: Oct 2011
Default here is my world that I am working on - 10-14-2011, 03:51 AM

The if/else statement is wrong but I have been trying all combos on it. Alice is supposed to go to the cat or the rabbit depending on who is closest.
Attached Files
File Type: a2w AP-5.a2w (910.2 KB, 3 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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.