A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [Help]: Flash Mx. Need pointers.

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    1

    [Help]: Flash Mx. Need pointers.

    Hiya all.

    I do Photoshop not flash. but recently Ive become interested in making a game for myself.

    i would like to base it loosely on a game that i played in the past. Ive made a ruff 10 frame game but its missing stats and requirements. which is why i am here. Ive been from tutorial to tutorial and have not yet found any help for my problem.

    This is the game i am basing it on.
    [18+ Only] http://www.pinkobox.com/Lesson-of-Pa...,game-2269.htm

    My game just jumps from frame to frame without any requirements.
    So what im asking is help to make the game require certain skills to do certain things. for instance cant click become a teacher button without a certain amount of knowledge points. and in saying that a button that takes away a certain amount of Time points and gives back a few knowledge points. Any help is oh so appreciated! Thank you for your time.

  2. #2
    It's true..I brought sexy back smith1302's Avatar
    Join Date
    Sep 2005
    Location
    here
    Posts
    343
    well you would need a basic understanding of flash and actionscript to be able to implement this but you would start with a variable:

    var knowledgePoints=3;
    var neededTeacherPoints=5;

    and when you click a button:

    if(knowledgePoints<=neededTeacherPoints){
    //not enough to become teacher
    }else{
    //yay you are a teacher
    }

    Of course applying it is more complex but it's all about if statements in this case... I would study up on the basics of programming first bud
    Hey check out my arcade sites!
    Ninja Games | WW2 Games

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