“Be inspired, enjoy your work, keep learning and never forget to play.” — gskinner

Using Flade

Posted: October 12th, 2007 | Author: Idoru | Filed under: Actionscript2, Flade Physics Engine, Physics Engine, Tutorial | 10 Comments »

Hi there,
Recently i had a project that had to be done in AS2, and to top that it needed to have some physics.

My first thought was, well i'll just use the AS2 version of APE, and then remembered that there isn't one.
Then i found flade.
Made by Alec Cove ( the same guy that does APE ).
Now I wanted to see some tutorials or documentation, but as expected for such an 'ancient' engine there were none.
So I decided to make a simple little tutorial on how to throw things arround using flade.

Files: Flade Example

Demo: Flade Demo

You will need Flash 8, and the Flade files found here.

So here's the code:


10 Comments on “Using Flade”

  1. 1 sultan said at 6:20 am on October 14th, 2007:

    Hi!

    Thanks for this! I have to use flade for a small project, and I just couldn’t find any doc. either. And I just couldn’t figure out how to attach a MC to a particle. Now it’s clear that it’s impossible, the mc has to follow the particle.

    In your example, let’s say there are multiple ball mc-s. Is there any way to set the collision between the balls, or they can only bounce off a LineSurface object?

    Thanks very much!

  2. 2 Idoru said at 3:51 am on October 15th, 2007:

    Hi sultan,
    flade is a very simple engine and only supports colisions between particles and surfaces.
    You can make other types of surfaces, like rectangles, circles…
    And it wouldn’t be hard to implement a rectangleTile on the rectangleParticle. As soon as i have the free time, i’ll post some code.

  3. 3 sultan said at 11:20 am on October 16th, 2007:

    Oh, that would be nice! I couldn’t find the solution until now :(

  4. 4 Rick said at 7:18 pm on January 10th, 2008:

    Idoru,

    I’d be interested to see how you would get a surface to track a particle. Surfaces don’t appear to have a method that would allow dynamic positioning.

    IMO, it can’t be done – would love to be proven wrong though.

    -r

  5. 5 Coisox said at 7:32 pm on July 29th, 2008:

    Wow… I was looking for Flade documentation and whats weired it cant be found in the official site! Luckily you made this :) Thx for ur effort.

  6. 6 Idoru said at 9:14 pm on July 29th, 2008:

    Thank you Coisox, glad I was of help, do you have a link to share?

  7. 7 Gecko said at 4:19 pm on August 4th, 2008:

    I started up a small site to try and help me and others learn more about flade. I’m only 12 so as you can imagine I don’t know that much about flade.

    It would be fab if someone could go
    http://www.freewebs.com/fladezombie
    and give me and other people a bit of help.

  8. 8 mike said at 7:48 am on August 5th, 2008:

    Hey all, I’ve got a project were I’m forced to use Flash 8 that also requires me to use a physics engine like flade.

    Flade for AS2 appears to be a turd as it is now, but APE for AS3 looks pretty good and is at least maintained at some level.

    Right now I’m in the middle of converting the latest version of APE to AS2. So far it seems to work (though obviously it’s not nearly as powerful!). When I’m done, and if I remember, I’ll post a link to the converted code here.

  9. 9 Idoru said at 11:38 am on August 5th, 2008:

    @Gecko, you made my day kid it’s great to see young programmers getting it on! I’ll be sure to stop by you site and give you hand, meanwhile I’d love to publish some of your code here in dreaming! what says you?

    @Mike, Sounds great looking forward to see the conversion, if you need a place to host your project let us know!

  10. 10 Caspar said at 2:55 pm on July 15th, 2009:

    Hey Mike,
    Did you ever manage to convert the APE to as2? It would be a big help if you posted it.
    Thanks


Leave a Reply