A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Cant Finish Game

Threaded View

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    20

    racing game help

    i have started to construct a racing game. i have the basic components, but i cant get it to that when u complete the 3 laps if goes to a new scene or frame stating that u won.

    the coding for the lap counter looks like this:

    onClipEvent (enterFrame) {
    if (this.hitTest(_root.car) && once != 1) {
    _root.lap++;
    once = 1;
    }
    if (!this.hitTest(_root.car) && once == 1) {
    once = 0;
    }
    }
    Last edited by masked D; 05-19-2006 at 01:30 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center