As I wrote before I'm currently trying to implement so called "Steering Behaviors" in Flash. Well, I made some progress, but.... hmmm..... I'm not really there yet.
I took the open source Java code from Thomas Feilkas and Christian Schnellhammer and tried to convert all the classes as good as possible into actionscript. There are lots of datastructures in Java that do not exist in Flash, like hashtables, vectors or collections, but for most of them I decided that it is better to go the flash way instead of simulating Java objects.
The first outcome is pretty disappointing. I have a 2Ghz machine and even a simple scene brings it almost to a halt. See yourself:
At least the scene parser already works. The XML file that created this scene looks like this.
I guess to gain more speed I will have to get rid of a lot of the "good" OOP style, e.g. replace all the object.getX() with object.x. Then I will go deeper into the core algorithms and check the biggest slowdowns.
No source for download yet.



