Alice Community  

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

Thread Tools Display Modes
Make a function that...
Posts: n/a
Default Make a function that... - 03-22-2011, 12:20 AM

Hello, i need to make a function in which if the distance between a troll and a dragon is 5 meters, the dragon turns back and moves away. I tried lots of things but i can't do anything! the professor thinks we know how to use alice perfectly but we don't! >_< help D:
Reply With Quote
Senior Member
Status: Offline
Posts: 180
Join Date: Feb 2011
Thumbs up 03-27-2011, 08:58 AM

obviously instead of tortoise put troll : P, most of the functions can be found in the world fuctions

btw if you cant read it it says:
if both dragon is distance the the right of troll as seen by= camera > 5 and troll distance to the left of dragon as seen by camera > 5
Attached Images
File Type: jpg Untitled.jpg (11.8 KB, 20 views)
Reply With Quote

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 ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.