Box2d Tutorials, Chapter 2 - Sneak Preview!

Hey, gang.

I know it's been a while since I've put out any tutorials, and I didn't want you to think I had gone off and, like, gotten a life or anything. So I thought I'd show you all a sneak preview of Chapter 2 of the box2d tutorials. It covers stuff like using the Actor class to put real graphics in your game, using ContactListeners, safely removing objects from your world, making platforms move left and right, and so on and so forth.

I haven't listed it yet on the main index page because it's incomplete. (I'm probably about 75% done) But at this point, I think it's far enough along that I'd be interested in sharing it with you all and getting some feedback on it. I'm kinda making a "real" game instead of just a tech demo, and this gets into some general Flash class design issues that I'm sort of a noob at myself, so any and all comments would be appreciated. (It also gets a little long-winded in places. I hope it's not too boring.)

Anway, until I put it up on the main page, you can find the first lesson here...

http://www.kerp.net/box2d/displaylesson ... 2&lesson=1

Enjoy!
Woah! You remade peggle? That's awesome!

I'm actually most curious about the trajectory-prediction 🙂. (Can't wait to see that!)
nice tutorials dude
Above all the other great lessons I really liked lesson 2.7 🙂

Thank you.
Cool! Thanks. Glad you're liking them so far.

Android, you're going to be awfully disappointed when you find out how I did the aimline. It's actually not a particularly clever solution. (I just kinda recreate an object falling with acceleration in one dimension and it matches what Box2D does) I thought of doing something crazy like creating a clone world that mirrored the first and then tracing an object's path in that clone world, but that seemed a little too wacky.

Anyway, back to work...
I was going to hold off on replying until I'd seen the whole series but a point you brought up in 2.23 prompted me...
First, loving them so far. I'm not a new user in any sense of the word and I am just watching them to provide some feedback and also for the look at someone else's style. With that said, the thing that prompted my reply is this:

You asked if anyone else had the problem of flash rendering your debug player behind the interface windows. I have in fact, its a horrible and common bug in CS3. I never did find a reliable way to fix it, but it is reliably reproducable. Specifically it happens when you start the debug player, and then context switch to another application while the progress window is up. You know what I mean right? When the 'Exporting SWF Movie' window is up.

Now, if anyone else knows of a way to fix that great. Otherwise, just don't switch while waiting for it to publish... heh.
Or, upgrade to CS4 and watch it crash on you a few times a day. Now that is fun...
VengantMjolnir, that is super-helpful!

I catch myself alt-tabbing back and forth all the time as just an impatient habit. I'm sure my OS already hates me for it, but I never knew that's what caused the Flash weirdness. Maybe now I can force myself to stop doing it.


Now I know! And knowing's half the battle...
I am also waiting for the trajectory prediction, that should be interesting and am also interested in the "lookat" algorithm for the canon .
Hey Todd, will you continue on lessons or is this all?
Hey, Batia. There's more coming. I've been working on what should be the last batch of lessons and hope to have them up by the end of this weekend. (Although these things take a heck of a lot longer to put together than you might think.) When I've gone ahead and added them, I'll let you know.

Original thread: https://box2d.org/forum/viewtopic.php?t=2913