A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help with Game!

  1. #1
    Junior Member
    Join Date
    Nov 2001
    Posts
    4

    Im trying to make a game where you get points for hitting targets. What i need to know is how to do the actionscripting for adding points to the score (which will be in a dynamic text box)

    an example or the code would be very helpful!

  2. #2
    Junior Member
    Join Date
    Oct 2001
    Posts
    12
    you can create a textfield and give it a name, for exemple "Display". But you can replace textfiled by a variable who is named in a frame

    your target has to be a button

    the actionscript is very easy

    wirte in action :

    on (release) {
    display = display + 10;
    }
    with this script, your new points will be added to the total of your points.

    i hope that's can help you
    sorry for my bad english...i'm french...


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