A Flash Developer Resource Site

Results 1 to 20 of 20

Thread: Yes!!! Flash player 9 is AMAZING

  1. #1
    Senior Member ozmic66's Avatar
    Join Date
    Oct 2005
    Posts
    472

    Yes!!! Flash player 9 is AMAZING

    Wow, I just had to tell everyone this
    I tried a simple verlet experiment in flash player 9 beta, and check this out

    I had 100 particles on screen
    used brute force for collision detection O(n^2)
    did collision checking 5 times per frame

    and my framerate--between 30 to 40 fps
    WOW

    it's kinda late now, but I'll post an example later
    make sure to download flash player 9

  2. #2
    hmm Pugger's Avatar
    Join Date
    Sep 2003
    Location
    Perth, Australia
    Posts
    616
    Is that written under AS3 or under AS2? Interested to know if old games will get the speed boost.

    Amazing to hear though, should be an amazing release for game developers.

  3. #3
    Member
    Join Date
    Dec 2005
    Posts
    60
    Nice, so we would create a 2d physically based shooter in flash! Awesome!

  4. #4
    Senior Member ozmic66's Avatar
    Join Date
    Oct 2005
    Posts
    472

    demo

    here is a demo
    http://studio.fileitup.com:88//oz/driver.swf

    it's written in as3, but I'm guessing you can use your as2 code...being that its all the same except when it comes to drawing/events/etc
    Last edited by ozmic66; 06-03-2006 at 01:12 PM.

  5. #5
    Iron Chef In-Training OpethRockr55's Avatar
    Join Date
    Sep 2005
    Location
    Kitchen Stadium
    Posts
    313
    Sweetness!!!

    That's awesome to hear seeing as how I can get about 21 particles on before slowdown, I'm beginning to wonder how many particles I can get to go with Flash Player 9. This indeed really opens the door for game developers or cool things in general.

  6. #6
    Senior Member ozmic66's Avatar
    Join Date
    Oct 2005
    Posts
    472
    u can download player9 beta through adobe labs
    Pixelwave Flash-based iPhone framework
    iPhone Games: Flyloop | Freedom Run

    Twitter: Oztune

  7. #7
    Member
    Join Date
    Dec 2005
    Posts
    60
    157 Particles 15 fps! OMG!!!!!!!!! JIHAAA!!!

  8. #8
    Senior Member fantasio's Avatar
    Join Date
    May 2000
    Location
    at the progress bar
    Posts
    409
    will try

  9. #9
    Senior Member fantasio's Avatar
    Join Date
    May 2000
    Location
    at the progress bar
    Posts
    409
    jeeeezus!!!

    20-30 fps with 300 particles!

    firefox/windows running under parallels on a macbook coreduo 2Ghz...

  10. #10
    Senior Member ozmic66's Avatar
    Join Date
    Oct 2005
    Posts
    472
    nice... looks like the mac player has been improved as well
    Pixelwave Flash-based iPhone framework
    iPhone Games: Flyloop | Freedom Run

    Twitter: Oztune

  11. #11
    Senior Member fantasio's Avatar
    Join Date
    May 2000
    Location
    at the progress bar
    Posts
    409
    err, no,

    i was using firefox on windows in the parallels virtualization environment.

  12. #12
    Senior Member ozmic66's Avatar
    Join Date
    Oct 2005
    Posts
    472
    oh well.. i tried
    Pixelwave Flash-based iPhone framework
    iPhone Games: Flyloop | Freedom Run

    Twitter: Oztune

  13. #13
    Member
    Join Date
    Dec 2005
    Posts
    60
    My pc kinda sucks, but i will buy a new one next month, i bought halflife2 and i can't play it!

  14. #14
    hmm Pugger's Avatar
    Join Date
    Sep 2003
    Location
    Perth, Australia
    Posts
    616
    Ozmic66, any idea how I could take something I've done in AS2 and get it to compile for Flash 9?

    I have the compiler and flex (If you need that at all). Cheers mate.

  15. #15
    Senior Member ozmic66's Avatar
    Join Date
    Oct 2005
    Posts
    472
    it depends on what exactly you have

    if its code, then you can make a new project in flex and copy all the code there, making changes where necessary, like various events and drawing on the screen

    you cant really convert the animation and tweening part into player9 because flex doesnt open fla files

    if you need more help dont hesitate to ask
    Pixelwave Flash-based iPhone framework
    iPhone Games: Flyloop | Freedom Run

    Twitter: Oztune

  16. #16
    Custom User Title Incrue's Avatar
    Join Date
    Feb 2004
    Posts
    973
    Quote Originally Posted by ozmic66
    used brute force for collision detection O(n^2)
    did collision checking 5 times per frame
    What is 'brute force for colision detection?'?
    Each ball hitTest all the other balls?

  17. #17
    Senior Member ozmic66's Avatar
    Join Date
    Oct 2005
    Posts
    472
    yep. but the demo I actually posted doesn't use that.. I used a more efficient algorithm called sweep and prune
    Pixelwave Flash-based iPhone framework
    iPhone Games: Flyloop | Freedom Run

    Twitter: Oztune

  18. #18
    hmm Pugger's Avatar
    Join Date
    Sep 2003
    Location
    Perth, Australia
    Posts
    616
    I think I'll stick with 8 for the mean time. Porting the fp9 shouldn't be too difficult when the time comes as I'm programming my game in heavy OO AS2. Should hopefully be a simple matter of updating my draw method (Hopefully ).

    PS: Care to ellaborate on sweep and prune

  19. #19
    Senior Member ozmic66's Avatar
    Join Date
    Oct 2005
    Posts
    472

    sweep and prune

    sweep and prune is an algo. for broad phase collision detection, or just
    for finding objects that might be colliding. To do this it uses the bounding box of every object (no, rotations, just an axis-aligned box)

    in order for this to work, you must, on every frame, sort all of your objects in a list by the left side of their bounding box (I'll explain how to in a sec)

    once they are sorted, you can loop through each object, starting at the left-most, but now, unlike brute force, you most likely won't have to loop through each other object. this is because if the object under you on the list doesn't overlap with you on the x-axis (their bounding box) then you don't have to check any other objects on the list because they're all to the right (try drawing it out if u dont get it) and you can go on to the next obj. in the outer loop

    for sorting, use bubble sort, which simply means going through each object on the list and moving it down until its value is lower than the object above it (index-wise)

    this works great for sweep and prune because your objects won't move that much on each frame, which will keep the sorting to about O(n)

    good luck, pm me if you need any help
    Pixelwave Flash-based iPhone framework
    iPhone Games: Flyloop | Freedom Run

    Twitter: Oztune

  20. #20
    hmm Pugger's Avatar
    Join Date
    Sep 2003
    Location
    Perth, Australia
    Posts
    616
    Got it. Cool, thanks.

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