Alice Community  

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

Reply
 
Thread Tools Display Modes
how would i program this
Old
Coreyjames25
Guest
 
Status:
Posts: n/a
Default how would i program this - 04-24-2009, 09:41 PM

if zombie is within 1 meter of camera than attack right or left <--- random
else (nothing)

attack right and left are already created; this is a class project and i need it as soon as possible. i just can think how to do it.
   
Reply With Quote
Old
Coreyjames25
Guest
 
Status:
Posts: n/a
Default 04-24-2009, 09:55 PM

Quote:
Originally Posted by Coreyjames25 View Post
if zombie is within 1 meter of camera than attack right or left <--- random
else (nothing)

attack right and left are already created; this is a class project and i need it as soon as possible. i just can think how to do it.
as of now i have

if zombie is within 1 meter of camera
attack left
attack right
(i would like it to choose randomly)
else do nothing
   
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.