Alice Community  

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

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Object is within Threshold of Object
Posts: n/a
Exclamation Object is within Threshold of Object - 09-03-2009, 08:52 PM

I'm attempting to make a simple game with Alice 2.0. The game is the player controlling a tank's turret
(Left arrow key rotated it left, right arrow key rotates it right. at this point I dont suggest uing up and down)to shoot at
targets out in front of the tank.

Right now when the tennis ball that is shot out reaches the target i placed, nothing happens. I used "If/Then"
with the "Object is within Threshold of Object" function and the If method is not performed when the tennis
ball enters the threshold specified.

So now here it is.
How do I...
Make this method so that when the moving tennis ball enters defined threshold of "target". The action
specified in "If" is performed?

Last edited by Kosire; 09-03-2009 at 08:58 PM.
Reply With Quote

function, game, tank, threshold

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.