A Flash Developer Resource Site

Results 1 to 19 of 19

Thread: Zelda in Flash! How's the fps?

  1. #1
    Lunatic Baukereg's Avatar
    Join Date
    Nov 2000
    Location
    Lowlands
    Posts
    853

    Zelda in Flash! How's the fps?

    Hello everybody, I'm trying to make Zelda DX of the Game Boy Color in Flash. Its going really wel so far, but I wander if the framerate is perfect. So please tell me if the game runs smooth so far. The problem is that the games uses a framerat of 60 (!!!), and the characters moves 1 pixel each frame.

    http://www.rockonline.nl/zelda.htm

    I'm afraid when the game becomes to huge, the game wont run smooth, so I'll have to optimize it.

    Already thanks.

  2. #2
    Member
    Join Date
    Dec 2002
    Posts
    46
    its looking good and runs nicly

  3. #3
    DOT-INVADER marmotte's Avatar
    Join Date
    May 2002
    Location
    Dot-Switzerland
    Posts
    2,601
    very very nice, keep up the good work ^^
    don't be afraid, it's very smooth with my mac 400mhz...

    in fact, all my games run at 60fps if you are wondering...

  4. #4
    Junior Member
    Join Date
    Dec 2002
    Location
    _root.home.room.chair
    Posts
    23
    While we're on the subject of fps. What fps do you all think is the best to set games and movies at?

    Thanks



    Cool game as well. It runs very well on my P4 1.99 GHz 384 RAM machine

    Last edited by CTT_Mustapha; 01-12-2003 at 11:32 AM.

  5. #5
    Spelunker Beatcow's Avatar
    Join Date
    Apr 2001
    Location
    after 5, before 4 Location::~Location(){}
    Posts
    797
    i would seriously remove the scrolling from one place to another. It will really run slowly once you have a lot of those going. Just make it so it appears in the next place and doesnt scroll up.

  6. #6
    avatar free
    Join Date
    Jul 2002
    Location
    UK
    Posts
    835
    Wow! You've done a great job here, looks like the real thing!

    I think you should keep the scrolling though, it wouldn't be zelda otherwise. You only have one screen scrolling at a time, so you won't have "a lot of those going" as Beatcow says (but a lot would slow it down ).
    jonmack
    flash racer blog - advanced arcade racer development blog

  7. #7
    .: Weirded Out :. The_Xell's Avatar
    Join Date
    Nov 2002
    Location
    Under the table and dreaming...
    Posts
    802
    So far runs very well on my P3 933

    Really nice feel to the game - can't wait to see it grow

    Well done, and good luck!

  8. #8
    Senior Member Kirill M.'s Avatar
    Join Date
    May 2002
    Location
    Toronto, Canada
    Posts
    712
    Nice start! Runs pretty smoothly, too. But my CPU was already strugling at 97%. I have a 760 MHz Pentium III. I would suggest slowing down the FPS and making link move by several pixels at a time, that will decrease the CPU usage substatially, and if you experiment with different combinations of those you will be able to make it look smooth even then.

  9. #9
    Lunatic Baukereg's Avatar
    Join Date
    Nov 2000
    Location
    Lowlands
    Posts
    853
    Wel, thanx a lot.

    Small update:
    - Press SPACE to use your sword
    - You can try to cut down large grass and flowers
    http://www.rockonline.nl/zelda.htm

    Please tell me if the game is still runing smooth, because I changed some things.

    Beatcoy: I dont think you're right. Each screens is an array, and it's only using two screens when scrolling. So it doesnt matter how many arrays I got. And ofcourse, it's a part of the real Zelda I'm trying to recreate.

  10. #10
    .: Weirded Out :. The_Xell's Avatar
    Join Date
    Nov 2002
    Location
    Under the table and dreaming...
    Posts
    802
    hmm, i pressed space, no sword! lol..................

  11. #11
    Registered User
    Join Date
    Jan 2003
    Posts
    24
    i love it!!!!!!
    but what i dont like is how slow he moves
    but other than that keep up the great work

    luke

  12. #12
    DOT-INVADER marmotte's Avatar
    Join Date
    May 2002
    Location
    Dot-Switzerland
    Posts
    2,601
    impressive!
    it reminds me my old racoon's experience where i updated it quite often, adding attack abilities and so ^^

    don't you want to create a mini-game to integrate in my RPG ^^, since you seems to be very good?


    it runs very smooth here, but please make link walk faster (i just played the original gameboy, it's faster), and keep the scrolling...
    btw, the sword works well here.

    keep it up!

  13. #13
    CRT Boy mclelun's Avatar
    Join Date
    Dec 2002
    Location
    happy land
    Posts
    299
    very smooth

  14. #14
    Lunatic Baukereg's Avatar
    Join Date
    Nov 2000
    Location
    Lowlands
    Posts
    853
    It's not running 100% at my computer, when uploaded and played from the internet. I guess the 60 fps isn't a good framerate, so I will optimize it.

    marmotte, I have seen your project. I like the idea of minigames, but I cant look in the future and 99% of my games are never finished.
    And the weekend is over, and I haven't done anything for school (where creating multimedia software for kids of 8 years old), so it's going to be a long and hard week. But maybe I will find some time.

    Thanx for the reactions so far!

  15. #15
    Senior Member Kayol's Avatar
    Join Date
    Sep 2002
    Location
    Tanilla Village
    Posts
    129

    Oh, maybe you could help me out with this?

    I see from your demo that your character and my character seem to have the same or very close movement but, how do you make the rest of the "land" solid, you no bountry or hittest? Nobody replied to my question yet and you seem to have done it.

    Link walks up, down, left, and right with a walking gif sprite for each movement and I haven't found a tut for using that with bountry, only for car style games.

    I also added a guard with the instance name, "guard" that mirrors the characters movement from left to right (like in zelda 64 where you have to get the sword and sheild before talking to the tree)

    Here is my code in the "hero" actionscript (hero being my controlled character):

    onClipEvent (enterFrame) {
    if (Key.isDown(Key.DOWN)) {
    this._y = this._y+10;
    gotoAndStop(2);
    }
    if (Key.isDown(Key.UP)) {
    this._y = this._y-10;
    gotoAndStop(4);
    }
    if (Key.isDown(Key.RIGHT)) {
    this._x = this._x+10;
    gotoAndStop(3);
    }
    if (Key.isDown(Key.LEFT)) {
    this._x = this._x-10;
    gotoAndStop(5);
    }
    }
    onClipEvent (load) {
    speed = 10;
    }
    onClipEvent (enterFrame) {
    if (Key.isDown(Key.LEFT)) {
    this._x -= speed;
    _root.guard._x -= speed;
    } else if (Key.isDown(Key.RIGHT)) {
    this._x += speed;
    _root.guard._x += speed;
    } else if (Key.isDown(Key.DOWN)) {
    this._y += speed;

    } else if (Key.isDown(Key.UP)) {
    this._y -= speed;

    }
    }


    How do I make or edit this code inorder to have all the solid objects in on big movie clip called, "town"?

    Please help me out since this is the last thing left in my project. I really look up to you and your work, honest. If you need to see the .fla or .swf file to understand this just let me no.

    BTW: My project is not based on Zelda... actually my fav game.

    Thanks!
    Last edited by Kayol; 01-12-2003 at 04:24 PM.

  16. #16
    Senior Member Kayol's Avatar
    Join Date
    Sep 2002
    Location
    Tanilla Village
    Posts
    129
    BTW, my project is art based not tile based and feel free to use the guard code in your zelda game if you want. That way the guards mirror link's movements until link takes to someone or gets a certain item.

    Once again please help me out with the bountry, how did you do it?

  17. #17
    Lunatic Baukereg's Avatar
    Join Date
    Nov 2000
    Location
    Lowlands
    Posts
    853
    I cant help you. In my game, the movie checks the current file of 4 points around the hero. But your game is art-based.

    Small update:
    - The framerate is now 30 fps
    http://www.rockonline.nl/zelda.htm

    Please tell me if the game is running better now.

  18. #18
    Senior Member Kayol's Avatar
    Join Date
    Sep 2002
    Location
    Tanilla Village
    Posts
    129
    oh, okay is there anyone else that can help perhaps?

  19. #19
    Runs nice here, keep up the good work.

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