Spidy you're really not ready for this type of thing but if you must:
- Create your basic car and your player object
- Create a simple animation of getting in and out of the car
- Add a limb to the car, a small sphere will do, and offset it so that it's positioned at the car door you want the user to get into.
- Check if the user is colliding with this sphere, possibly by using intersect object (COLD
), basic object collision commands, or a dll. like NGC.
- If the user IS colliding with the sphere, play an animation of the user getting into the car, pause the user's frame when it's in the sitting position, and position the user correctly inside the car - every loop.
- You'll then need some way of keeping the user in the seat and rotating them as the car rotates, I recommend using GLUE OBJECT TO LIMB.
- Now you have entering a car, to create the exiting process simply check if the user presses the spacekey again, if so and they're inside the car, play the getting out animation and position them outside the car.
I recommend using a variable to tell if the user is inside the car or not, could be something as simple as INSIDE#=1 for inside, and INSIDE#=0 for outside.
Thats a very basic way of accomplishing what you want, and I mean very. If you don't understand one of the commands listed above or dont have a clue about doing anything of what I stated above, you're not ready and should continue learning and experimenting until you understand.
Goodluck.
-
RUCCUS
Current Projects: SHADE - Game Maker | Mecho - TGC Puzzle Entry | Halo Physics Engine | COLD - Polygonal Collision Detection