Alice Community  

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

Reply
 
Thread Tools Display Modes
How to move a car with up down left right controls?
Old
Ap32
Guest
 
Status:
Posts: n/a
Default How to move a car with up down left right controls? - 10-06-2009, 10:37 AM

I need help on how to move the car with the arrow controls..
   
Reply With Quote
example...
Old
sandman87x
Guest
 
Status:
Posts: n/a
Default example... - 10-06-2009, 12:07 PM

hey heres a simple example of how to use the arrow keys to make the car move...
Attached Files
File Type: a2w car movements.a2w (186.6 KB, 62 views)
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 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.
   
Reply With Quote
Old
sandman87x
Guest
 
Status:
Posts: n/a
Default 10-06-2009, 03:36 PM

no problemo, thats how i fixed my turning and shit for my flight sim
   
Reply With Quote
Old
Ap32
Guest
 
Status:
Posts: n/a
Default 10-08-2009, 05:12 PM

how do you do those events, let forward arrow move car forward etc.. in the events section?
   
Reply With Quote
Old
Ap32
Guest
 
Status:
Posts: n/a
Default 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?
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 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).
   
Reply With Quote
Old
a23
Guest
 
Status:
Posts: n/a
Default 10-08-2009, 06:57 PM

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 at least by Monday or if it would be faster, could you please modify it by yourself?

Attachment Here:
Attached Files
File Type: a2w customproject1.a2w (3.21 MB, 28 views)

Last edited by a23; 10-08-2009 at 07:22 PM.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 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.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 10-09-2009, 04:30 PM

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
Attached Files
File Type: a2w customproject2.0.a2w (3.02 MB, 33 views)

Last edited by Dameria; 10-09-2009 at 06:24 PM.
   
Reply With Quote
Reply


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.