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 move a car with up down left right controls? (http://www.alice.org/community/showthread.php?t=3147)

Ap32 10-06-2009 10:37 AM

How to move a car with up down left right controls?
 
I need help on how to move the car with the arrow controls..

sandman87x 10-06-2009 12:07 PM

example...
 
1 Attachment(s)
hey heres a simple example of how to use the arrow keys to make the car move...

x2495iiii 10-06-2009 03:26 PM

Hmm, very interesting, I'd never thought of using that method, move at speed, before. Nice job teaching me something new, sandman.

sandman87x 10-06-2009 03:36 PM

no problemo, thats how i fixed my turning and shit for my flight sim

Ap32 10-08-2009 05:12 PM

how do you do those events, let forward arrow move car forward etc.. in the events section?

Ap32 10-08-2009 05:18 PM

how do I make the camera follow my car and I need help making the police chase the car and when the car is cut down by the police, how do I make it so the game ends?

x2495iiii 10-08-2009 05:31 PM

To make the camera follow the car set the camera's vehicle to the car.

To make it so that the game ends, make a variable that changes to true when the car is caught, then add a "when a variable changes" event which has the light color change to black and some kind of "You Lose" message display on screen (you can print it or use 3d text or whatever you'd like).

a23 10-08-2009 06:57 PM

1 Attachment(s)
Thank you, very much, I have added that.

Could you modify this so it appears to be more realistic when the cop cars move because I do not know how to and probably will screw up the code... lol.

If you could help me step by step by tomorrow, that would be cool or [B]at least by Monday or if it would be faster, could you please modify it by yourself?[/B]

Attachment Here:

x2495iiii 10-09-2009 04:24 PM

Here's what I did:

I deleted everything you had in the chase method and replaced it with an infinity loop. Then I put two do togethers in the loopp. Then, in the first do together I put policecar 1 constrain to face car duration .01 seconds, and the same for policecar2. Then, in the second doTogether method I put policecar moveatspeed forward 30 meters per second, and the same for the policecar2. This makes a pretty smooth looking chase animation.

Dameria 10-09-2009 04:30 PM

1 Attachment(s)
Hey x2495iiii, how do you like this fix I made to a23's?

The chase is a lot smoother than it was before, but now its too easy to win...

And now there is only 1 cop car, because really that is all you need, and the other one would just be overlapping the first in the chase.

EDIT: I forgot to add that you can press the Space Bar to view the car from the back, to see how far the cop car is away from you.

Hey x2495iiii congrats on your post #333 lol


All times are GMT -5. The time now is 03:15 PM.

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