Archive for the ‘Paul’ Category

Changes to Box2DFlash “Hello World” example.

Tuesday, April 29th, 2008

I’ve talked about the basics of Box2DFlash v1.4.3 in my Introductory tutorial. I showed how to create your world and how to introduce simple bodies into that world. With the release of Box2DFlash v2.0.0 the basics remain mostly the same, there are a few details changed. I need to go over these small changes before I move on to the next step of adding joints and forces to the bodies.

The first and biggest change (although really a small thing) is that we no longer work in pixels! We now work in units that by default equal 30 pixels to 1 unit (think of it as meters; 30px : 1m). With this change our normal gravity is no longer (0, 300) but instead (1, 10). This makes more sense to me at least because gravity in reality is 9.81 m/s/s. This is going to effect almost everything you do, from applying forces to setting the width and height of a box.

(more…)

Box2DFlash v2.0.0 Released!

Monday, April 21st, 2008

Box2DFlash v2.0.0 was finally released on the 17th of this month (April). Box2DFlash is the Flash AS3 port of Erin Catto’s C++ physics engine Box2D. Erin Catto is a physics programmer at Blizzard Entertainment (WarCraaaft!). I’ve been looking forward to this release since I found out about it while making a tutorial for the previous release (v1.4.3) about a month ago.
(more…)

Making an MP3 player in AS3

Tuesday, April 15th, 2008


Music Credits:
Title: The Best Day Ever
Artist: SpongBob
Album: The SpongeBob SquarePants Movie: Music From the Movie and More

Creating an MP3 Player in ActionScript 3.0 is fairly straight forward. The complexity varies greatly depending on what kind of features you want your player to have. I don’t plan on getting into ID3 tags here, but otherwise (as you can see) I will be going over the full functionality of a normal MP3 Player.
(more…)

Internal PreLoading in ActionScript 3

Monday, April 7th, 2008

I’m going to walk through the steps of making a preloader for your animation, game, or application and provide easily implemented source files that you can copy and change to fit your own project. Making a preloader in ActionScript 3 is more difficult to figure out then it was in ActionScript 2, but the code itself is not any harder.
(more…)

Spring Animation with ActionScript 3

Friday, April 4th, 2008

In celebration of our little vector contest I thought I would unofficially submit my own entry.

I made this animation using our Spring Time vector pack. It’s about 360Kbs, but once it’s loaded click Play to get it started, then you can press the Left or Right arrows to control the little bunny.

I’ll walk you through the process I went through to create this here game/animation.

(more…)

Cool Games Made with Box2DFlash

Monday, March 24th, 2008

After writing my introduction tutorial to Erin Catto’s Box2D AS3 physics engine port, I found out that I was writing about version 1.4.3. Well a new version (v 2.0.0) is set to come out within the next few weeks, so I thought that I would put off any more tutorials on Box2DFlash till I find out what has changed.

Until then, I’ve found a bunch of fun games made with the Box2D engine and I thought I would share them with you.

(more…)