Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Reply
 
Thread Tools Display Modes
Grand Theft Auto: Wisconsin
Old
pancake
Guest
 
Status:
Posts: n/a
Smile Grand Theft Auto: Wisconsin - 10-08-2009, 04:44 PM

Hey peeps I am starting to work on a GTA game. I made a city and put some people and cars in there. The station wagon is following the cubes on the road (for a simulated car path). I would like to know how to get my guy into that moving vehicle and make him control the car.

Thanks for your help and please comment!
Attached Files
File Type: a2w GtaWis.a2w (4.40 MB, 120 views)
   
Reply With Quote
Solution
Old
NivekNamttid
Guest
 
Status:
Posts: n/a
Lightbulb Solution - 11-18-2009, 12:46 PM

If your person is controlled by the arrow keys, you could have him set point of veiw to car and set the cars vehicle to the character, and have the character turn invisible.
Since you said the car is following a route, it would have to stop following that route in order to enable player control. In your method for the car's movement along that route, have it use an if/else statement to check if the character is within a very small amount of meters of the car. Then, the character is still moving, but it is also controlling the car.
As for getting out of the car, have a method activated by clicking on the ground which sets all possible cars vehicles to world, and returns them to their preset routes. This should also make the character visible again.
   
Reply With Quote
Reply

Tags
fps, gta, halo, tank, weapons

Thread Tools
Display Modes

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.