Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   How To Decide If Collison Or Not? (http://www.alice.org/community/showthread.php?t=1734)

bking0 09-22-2008 10:51 AM

How To Decide If Collison Or Not?
 
1 Attachment(s)
Im trying to make a game and i dont know how to make collison in alice work?
The game is about done, all i need is to fiqure out how to make collision work!
The game is where you can get in a vehicle and drive around.

[ATTACH]882[/ATTACH]

controls are-
w=move up
s=move down
a=move left
d=move right
e=get in/out of vehcile

/you must be at least five meter by the vehcile to get in it!

Gillette Fusion 09-27-2008 05:48 PM

You have the right idea, you have to be at least (what ever meters) from (what ever object) for something to happen. I assume by looking at the program that you want to stop your guy from walking in the tank.

You need to have at least two collision codes, one for entering the tank (you got that one down), and one to push you away from tank if you get two close.

As you can see from my craptastic illustration:

[IMG]http://img219.imageshack.us/img219/8569/picture2cn3.png[/IMG]


All times are GMT -5. The time now is 04:30 PM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.