Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   How does a car collide? (http://www.alice.org/community/showthread.php?t=1881)

twopointohaliceuser 11-07-2008 05:58 PM

How does a car collide?
 
I am new to Alice, and I am creating a game. How does a programmed car collide with another object and has damage done to it?

Fiskejohn 11-11-2008 11:21 AM

For the coliding cars, i think the answer would be to use a "if/else loop"

I am new myself, so i really don't know how to explain it. But i think you have to use hte "if/else loop"

zonedabone 11-11-2008 08:13 PM

Proximity
 
If your making a driving game, I'd reccomend making an "if statement". Make it so that if [car] is within .1 meters of [wall]
change hp = hp-car speed

get the picture?:D:D:D:D:D:D:D:D:D

twopointohaliceuser 11-22-2008 08:20 PM

Resolved
 
Thanx. It helped! :)


All times are GMT -5. The time now is 03:35 AM.

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