A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member
    Join Date
    Jul 2012
    Posts
    57

    Unhappy How to make a point and click game in Flash 8?

    HI! So I'm trying to make a point and click game, but I'm having alot of difficulty. At first I tried to follow this tutorial:
    HTML Code:
    http://www.youtube.com/watch?v=ALXz8IZEyM4
    But I'm having trouble. So could someone explain it a little better please?
    Also in my game the player has to click an object in order for another object to appear.
    For example: If Bob clicks the dollar, goes to the bank, and clicks on the piggybank, a penny will appear on the screen.
    Any ideas of how this can be coded?

  2. #2
    AS2 Coder
    Join Date
    Mar 2010
    Posts
    607
    It's easy. What have you done so far? Do you want me to make you a .fla so you can learn from it or use it, or do you want i try to explain how to make it step by step?
    - Something better now, let's code! )

  3. #3
    AS2 Coder
    Join Date
    Mar 2010
    Posts
    607
    Here you have a tutorial i made for you.
    You have only to create the movieclips and name them with instance names: door, key, pipe and the dynamic textbox statusTxt

    And create 3 frames, one for each level, and put a stop(); on each one.

    The door has a stop(); on its first frame, and then a stop(); on the last frame of the opening animation. The animation starts at frame 2.
    http://sofistica2.zzl.org/escapetutorial.html
    - Something better now, let's code! )

  4. #4
    Member
    Join Date
    Jul 2012
    Posts
    57
    oh thank you! I do have a question though, do I place all the codes in the frames of my movieclip? or would I place the coding in my movie clip or.....
    aish

  5. #5
    AS2 Coder
    Join Date
    Mar 2010
    Posts
    607
    The script on the Level 1 place it on frame 1, the script on Level 2, place it on the frame 2, and so on. All in the main/root timeline. Isn't a good practice to put script on movieclips.
    - Something better now, let's code! )

  6. #6
    Member
    Join Date
    Jul 2012
    Posts
    57
    ok I think I understand, would I have to declare any variables? also would I just delete the text coding in the code since I don't want text to appear on release?

  7. #7
    AS2 Coder
    Join Date
    Mar 2010
    Posts
    607
    The only variable I made was var opened=false; and it's declared on each frame.

    For the text thing, just put this on your onRelease code: statusTxt.text =""; And when you release the buttons, the dynamic textbox named statusTxt will be empty.
    - Something better now, let's code! )

  8. #8
    Member
    Join Date
    Jul 2012
    Posts
    57
    alright, i ran into a problem with the first code: After I get the key and click on the door, I cant go to level 2. Also what if my door doesnt have an animation? would I change the code?

  9. #9
    AS2 Coder
    Join Date
    Mar 2010
    Posts
    607
    What version of flash do you have? So i can upload my .fla and you can play with it?
    - Something better now, let's code! )

  10. #10
    Member
    Join Date
    Jul 2012
    Posts
    57
    I have Flash 8, as2

  11. #11
    AS2 Coder
    Join Date
    Mar 2010
    Posts
    607
    http://www.mediafire.com/?rt4v97an5z9twn9

    If you need more help let me know.
    - Something better now, let's code! )

  12. #12
    Is the best Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    327
    lol I like looking through peoples FLAs and seeing how they code, I code way differently. :P
    (That awkward moment when you help someone and they never reply again :P)

  13. #13
    AS2 Coder
    Join Date
    Mar 2010
    Posts
    607
    LOL. I code depending on my mood. If i'm down, i code with a mess , in no order, and very complex. If i'm happy and motivated, i organize my scripts, variables, etc, and optimize the script with the less code as possible. Regards Basses! I will post an updated version of this tutorial game in a few minutes
    - Something better now, let's code! )

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