if (mc_car.hitTestObject(mc_topboundary)){
speed = speed/1.5
}
And here is an image showing my rectangles I used (they're the objects with blue outlines):
And now if my car went over the edge of the track it would be hit with a severe speed penalty and would not be able to travel anywhere any fast. This was mainly to stop cheats driving down the middle of my track.
Next I will describe perhaps the 2nd most important part of my game, the timer!
No comments:
Post a Comment