Box2DFlash Video tutorial

So I was bored today and decide to make a video tutorial for beginners :O. Let me know what you all think, if I get good feedback I might make some more.

Enjoy!

http://shah-soft.com/~warhell/box2d/Box ... World.html
Edit: the link to the lesson1 materials can now be found at the top of the page.
Edit2: The video is using Version 2.0.0
Nice one!
The 1 meter = 30 pixels explanation was very good, i've always been unsure with the scaling thing.

Keep up the good work 😀
It's a good tutorial, it's a very good approach to start writing a minimal program, it's much less daunting than the size of the TestBed. It's so fool proof I am worried it'll result in a flood of idiots to these boards who wouldn't be capable of unzipping a file without your help 😀 .

There were a few mistakes / misleading parts though:
  • SetAsBox takes half height and half width, so the size of your box is actually double what you say it is.
  • You do all the pixel calculations in your head, when it might be easier just to multiply everything by an appropriate scale factors.
  • You set a userData sprite for your box, and do nothing with it. This is just going to make people think that it is actually doing something important, and miss the point of userData.
  • It's the "bitwise or" operator, not the "bitwise" operator.

Sorry to be so blunt, but tutorials do need to be pretty accurate.
BorisTheBrave wrote:
It's a good tutorial, it's a very good approach to start writing a minimal program, it's much less daunting than the size of the TestBed. It's so fool proof I am worried it'll result in a flood of idiots to these boards who wouldn't be capable of unzipping a file without your help 😀 .

There were a few mistakes / misleading parts though:
  • SetAsBox takes half height and half width, so the size of your box is actually double what you say it is.
  • You do all the pixel calculations in your head, when it might be easier just to multiply everything by an appropriate scale factors.
  • You set a userData sprite for your box, and do nothing with it. This is just going to make people think that it is actually doing something important, and miss the point of userData.
  • It's the "bitwise or" operator, not the "bitwise" operator.

Sorry to be so blunt, but tutorials do need to be pretty accurate.


Hey that's no problem, I was looking for feedback! I spread out the video tutorial into smaller section just in case I needed to change something.As far as the userData sprite, I do plan on using it on another tutorial that will build on top of that one, by linking items to the library. I probably should have waited till that point.

I don't quite understand what you mean by the scaling factor point.
Edit: I think I know what you mean, instead of putting something like 5,6, I should just do 150* (1/30), 300*(1/30).
warhell wrote:
I don't quite understand what you mean by the scaling factor point.
Edit: I think I know what you mean, instead of putting something like 5,6, I should just do 150* (1/30), 300*(1/30).

Actually, I think what he meant was abstracting it away into a variable called var scaleFactor:Number = 1/30; or something. You get several things from doing this:
  • Improved readability.
  • Less likelihood of randomly exploding values (imagine in the example you gave above that you accidentally got all but one of the expressions correct, leaving one at 300*(1/3). Uh ohs!) - plus if you mistype the variable you'll get a compile-time error which is handy.
  • If you decide you need to change the scale factor you need only modify one location in the source.

I thought the test-bed code did this. I certainly do and it has kept my code simple and readable 🙂
Is there anyone that is willing to host the tutorial? I had it on a friend's site, but now I need to take it off because of bandwidth issues. If you can please just reply to this post or pm me.
Yeah Sure Warhell! if you like I can host it at http://www.shah-soft.com , just email it + htmls etc in a zip.

what are Avg. Bandwidth Requirements/Day? Anyway I got plenty!
Hey, thanks a lot, I'll send it to you right away!
Hello.

I stumbled across your tutorial so joined up to say a big thanks, and if you need I have unlimited bandwidth. I only have 250 meg of space, but am willing to host if that's enough space?

Can't wait for the next tut, I want to see things bounce. 🙂

Take care, A.
Oh wow that would actually be great, 250 megabytes is more then enough, it's the bandwidth I'm worried about. I'll try to work on getting some more stuff up, bouncing balls 😛. Should I just pm you so you can host up the videos?

Great to hear that people are actually getting something out of my videos 😛

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