All posts about Box2D

WorDrop

Word Play contest is over, you can see the winners in the official MochiLand post, and it’s time to show you my little game based on words. It’s called WorDrop and it’s a Box2D game made in a couple of days based on this prototype. It’s not that great game but I would like to […]

Basic Box2D rope

It’s time to create a rope with Box2d. To start defining a rope, we’ll start from something similar: a chain. A chain is a series of two or more connected links. The smaller and closer the links, the more flexible the chain. So we can define a rope as a “perfect chain”, with infinite links. […]

Introducing Box2D filtering

In Box2D, normally every object collides with other objects in the stage. But sometimes we may need a way to make an object collide with only certain objects, ignoring the rest. I am not talking about sensors, but real objects that won’t collide with certain other objects. This feature can be done with filtering. Collision […]

Rendering joints with Box2D

In most Box2D projects you can see how to render bodies or attach objects to them, but I couldn’t see any tutorial about rendering joints. If you look at the classic rendering loop it’s something like this one

but as you can see, it only renders bodies. The following script is the same you […]

Simulating a hook with Box2D

In a comment to Pumpkin Story prototype, a reader asked for a function to simulate a hook. This can be quite easily done in some steps. This first step will set a rule: you can only hook to a static body. Obviously it’s not a mandatory, rule, but just a gameplay one. In this example, […]

Pumpkin Story prototype

This quick Pumpkin Story prototype is made merging and mixing these scripts: Drawing arcs with AS3 and Creation of a Flash artillery game using Box2D. If you notice, it’s similar to an artillery game (like Bloons) with the “only” difference you are the bullet. This opens some interesting gameplay options, so interesting I am going […]

Word Play contest prototype, four days to make something decent out of it

The final deadline for “Word Play” Flash Game Contest ran by MochiMedia is September 18 and if you did not submit any entry, here it is a prototype you can use to make something better out of it. The concept is based upon How to use an embedded text file in Flash and some concepts […]

Creation of a Flash artillery game using Box2D – part 2: removing bullets

This is the second part of Creation of a Flash artillery game using Box2D… one reader asked for a function to make blocks (bullets) disappear after 10 seconds or any given time. I found the question interesting, and here I am writing something about removing bullets. To introduce timed bullets, I only need another class […]

Creation of a Flash artillery game using Box2D

Small intro: having a plugin that allows readers to vote posts can help you understanding what do readers like. I saw readers liked a lot Create a flash artillery game – step 1 so I decided to create something similar with modern techniques (that post is dated 2007!!! Ages ago!!). Let’s start from Platform engine […]

Simplify your Box2D projects with QuickBox2D

You know with Box2D you can make interesting games like Mazeroll, SamePhysics or Filler, but even if I published a Box2D tutorial for absolute beginners, everyday I am receiving emails complaining about the excessive complexity of this library. If you are looking for a library able to simplify your Box2D projects, Zevan Rosser from ActionSnippet […]