Author Archives: Zevan

Colors For Questions

I get lots of questions about actionscript and QuickBox2D. Too many questions to answer really. But if you enter 30 colors into this project I’m working on I’ll help you by answering any question (within reason of course) and possibly giving you a code snippet related to your question.
To enter colors use you’ll be using [...]

Posted in Uncategorized | 11 Comments

Polygon Problems

Lots of people have mentioned that they have problems with QuickBox2D Polygons. The simple solution is not to use the verts 2d array (which is more like how Box2D does polys). So when in doubt about polygons, simply use the points array which will nearly always work as long as the contour you define does [...]

Posted in Uncategorized | Tagged , , , | Leave a comment

Polar Coordinates Distribution

If you're at all interested in watching me free from code. I recorded a video of me coding this snippet (which is about 11 minutes long or so).
In the video I create a few functions that allow you to draw shapes like these:

Mathematically this stuff is really simple ... the free form nature of the [...]

Posted in Graphics, Math, functions, misc | Tagged , , | 4 Comments

Nested Tree Nav

This snippet takes xml and builds a multi-tiered navigation based on how nodes are nested etc...:
So that something like this:
CLICK HERE TO COPY
XML:

var menu:XML=<nav>

   <element label="one">

       <element label="a" />

   <element label="b" />

   <element label="c" />

</element>

<element label="two">

     <element label="three">

     <element label="aa">

       <element label="zevan" />

     </element>

     <element [...]

Posted in Uncategorized | 2 Comments