A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: A few questions, im new :)

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    1

    Question A few questions, im new :)

    Hey Everyone

    So i'm new to flash and i'm very interested in creating simple games and animations, hopefully with time i aim to make an rpg

    Anyway, having followed a few tutorials online for creating a simple shooter which records your score (The one from Kirupa.com) I was wondering if someone could help me enhance the game.

    Firstly i was wondering how i could add a sound effect whenever the players score goes over a certain score. For example each time the player shoots a dragon they gain 5 points, however when they reached 50 points a sound would play and every 50 points there after.

    I would also like a textbox to appear with the sound saying somthing silly like "OH MY GOD YOUR AMAZING" etc

    Could someone help me with the process?

    Thanks


  2. #2
    Senior Member bluemagica's Avatar
    Join Date
    Jun 2008
    Posts
    766
    something like
    Code:
    if((score%50)==0 && score>lastScore)
    {
       snd.play();
       msgBox.display("A silly message");
       lastscore = score;
    }
    there is no msgBox.display is flash though, you have to write your own object for that.
    If you like me, add me to your friends list .

    PS: looking for spriters and graphics artists for a RPG and an Arcade fighting project. If you can help out, please pm me!

    My Arcade My Blog

    Add me on twitter:

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