Alice Community  

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

Reply
 
Thread Tools Display Modes
How do I?
Old
Sgt Moose
Junior Member
 
Sgt Moose's Avatar
 
Status: Offline
Posts: 9
Join Date: Jun 2012
Location: U.S.A.
Question How do I? - 06-23-2012, 02:30 PM

How do I make an object do something when another object is within a certain distance of it (ex. a bullet and an enemy) %(
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 06-23-2012, 04:03 PM

Pull an if statement out of the bottom

Then go to your object, click it, and then click "functions", the third option. Then, drag the "object distance to object" function to the true section of the if block, and fill in the correct parameters.

Fiddle with the distance until it works, and voila, it works.


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Thanks
Old
Sgt Moose
Junior Member
 
Sgt Moose's Avatar
 
Status: Offline
Posts: 9
Join Date: Jun 2012
Location: U.S.A.
Smile Thanks - 06-23-2012, 06:22 PM

Thank you very much.

If you need anything, just ask me.
   
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 ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.