How To Make A Score Bar And Pickups In Adobe flash CS3 In Actionscript 2.0 Part 2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,663
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 14, 2009

READ THE DESCRIPTION!
sorry guys someone emailed me in the middle. Here is the tutorial on how to do it!

First open your character moving file.

Then draw your pick up and convert it to symbol.

Click on it and press F9 to open the actions then add the code:

onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.score++;
unloadMovie (this);
}
}

Now put in the keyframe actions: _root.score = 0

Now to make the score bar Click the t button.

Make a small dynamic text box.

In the properties put in the var box score.

Press ctrl + enter and it should work.

Download my FLA of this at:
http://sharecash.org/download.php?file=396351

Category:

Gaming

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (ThomasB2685)

  • do you know how to make a game where you click a target, (like a shooter) and it gives you a point?

  • No sorry.

    I am no good at mouse flash games.

    Ask another Flash Guru

  • And what do you mean by +1

  • i mean like maze game and when i reach finish it count score +1 . i move wiht Mouse.

  • if you mean like you hit the finish and score goes up 1 and then moves on to the next level i think the code is

    onClipEvent (enterFrame) {

    if (this.hitTest(_root.char)) {

    _root.score++;

    _root.gotoAndStop(2)

    }

    }

    Change the 2 in brackets to the frame the next level is on. you can delete the gotoAndStop(2) bit if you dont want it to go to the next level

  • what sort of target

see all

All Comments (29)

Sign In or Sign Up now to post a comment!
  • 1 coin collected an NaN scores lololol

  • the file is so hard to download ~_~

  • @bennythebull9 use this code onClipEvent (enterFrame)

    { Mouse.hide(); this._x = _root._xmouse; this._y = _root._ymouse;

    }

  • Hi Josh.

  • keep pressing 8, Josh says Hi. (;

  • @bennythebull9

    try this

    on the target put

    onClipEvent(enterFrame){

    on(press){

    this.gotoAndPlay(2);

    _root.score++;

    }

    }

  • josh says hi

  • @McRacoon66 Yeah, really. I'm having a hard time finding a tutorial about that, myself.

  • How do you make it so that the score bar follows your player (for bigger levels)? Pleaseeee someone help me? D:

  • @marioandluigi244 looooooooooooooooool,i got answer after one year xD, anyway i dont need this for long time .But its so funny to see something what i did 1 year ago,haha

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more