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:
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!
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.
Oh, that would be nice! I couldn’t find the solution until now
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
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.
Thank you Coisox, glad I was of help, do you have a link to share?
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.
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.
@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!
Hey Mike,
Did you ever manage to convert the APE to as2? It would be a big help if you posted it.
Thanks