PDA

View Full Version : Racing game!


b16a2
04-17-2002, 09:15 PM
Hi guys! As you can see by my post count, I am new to the forums... i am working on a racing game for my IT class, and I am running into problems. I am about 75% completed the game, Everything up until the crashing works. Even then, I have it to detect collisions and if I go off the road, or hit a car, it'll play the appropriate MC.

I want it so that at the end of the crash clip, that it will send it to the next scene ("YouDied") so that the player will eventually have the option to re play the game.

I have attached a copy of the FLA. I am thinkinging that it's probably pretty messy, so I'll declare some of the variables, and instance names and placements for you!

- Mouse/Car Movement: Controller MC (Instance Name: controller)

- Collision Detection and Traffic Spawning: Randomizer layer

- Player's car: PlayerCar layer, (Instance Name: car)

- Car Crash movie: PlayerCrash MC

- Car hitting side of the road: CarDitch MC


Thank you VERY much in advance for your help!

b16a2
04-18-2002, 04:48 PM
TTT,

C'mon guys, I know there are people who are VERY capable of helping me...

It's just a problem with my code somewhere...

I can't stop the mouse from tracking the car, because it is a loop that will not stop. I don't know the code that it takes to get a 'for loop' stopped.

There's that, and I just need to know why I can't get the scene to switch to scene two (YouDied) so that I don't have to worry about the problems that I had in Scene 1 where the movie keeps looping the black fade...

I've got the appropriate coding at the end of the crash movies.

gotoAndPlay ("YouDied",1);

but so far it hasn't done anything more than loop the movie again.

I tried making it so that it would do the same thing, but on scene 1 frame 5 (where I had a frame with a "You Died" screen), needless to say, it still didn't work.

I thought it might be because it wasn't reaching the end of the movie, but I am sure it does. Just to make sure, I tried that coding at the beginning of the frame. A "stop ();" function worked, but I couldn't get it to jump a scene.

Please help me out with this, it's due on Friday, and if it's still this buggy, I am not going to get the marks I want. This is something I don't think I can get out of a book, this is something that takes someone who knows what they're doing to look it over and debug it!

Thank you once again in advance for any help that anyone can offer me!

Thank you.