PDA

View Full Version : My car game



Jake69
December 3rd, 2004, 01:05 AM
i made this awsome car game and cant work out how to make the car hit the wall rather then go through it please help!
some simple codes would be muchly appreciated
http://jake3163.tripod.com/sitebuildercontent/sitebuilderpictures/.pond/has.jpg.w300h236.jpgbad pic but only got flash at school

Dr Warm
December 3rd, 2004, 03:27 AM
i can't see the pic, but if you post you're fla it probably be easier for us to help u anyway, just take out all the pics that make the fla too large, put in a rectangle or something!

Daniveness
December 5th, 2004, 10:57 AM
You could make each wall a separate MC but that would take ages. Make a left wall and make the code:

onClipEvent (enterFrame) {
_root.myCar._x = _root.myCar._x - moveSpeed
}