PDA

View Full Version : How To Decide If Collison Or Not?


bking0
09-22-2008, 10:51 AM
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.

882

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:

http://img219.imageshack.us/img219/8569/picture2cn3.png