Flash jump'n'run -> The Adventures of Tinger

Hi everyone,

we've recently finished the first level of our flash jump'n'run game "The Adventures of Tinger" which can be played here: http://adventuresoftinger.com/. Physics calculation relies completely on the Box2D AS3 port. I want to say thanks to everybody who is involved in coding and porting Box2d, without you guys we wouldn't have been able to make the game the way it is. I'll probably post some details about how I implemented box2d and about the leveleditor I wrote on my blog. I'll keep you updated in this thread ( only if you're interested of course ).

Best,

Dave
Wow, thats a truly beautiful game. It's also nice to see that Box2D can be used in a proper platformer for collision and mortars etc while still keeping the platform feel to a game. I am a bit confused over what you've done exactly and how much of Box2D is used, so yeah, would definitely be interested to see something on your blog.
i am also developping a platformer game, and i have 2 question:
how do you simulate a heightfiled terrain?
how do you move the player? by applying force/impulse? SetXForm/SetLinearVelocity methods?
thanks
@Boris: give me a few days of time to finish setting up my portfolio framework. I'll then post a version of the game where you will be able to see how box2d is used.

@maroxe: I move the player by setting the linear velocity directly. I used Version 1.4 of Box2D by the way. What exactly do you mean by "heightfiled terrain"? The terrain is composed of boxes, but as soon as I give you the aforementioned link, you'll be able to understand how it's built.
G'schafft!

This looks very cute. Artwork, music and story are great. However I had a hard time playing, supposedly because of a very low fps setting. Did you leave it at the default 12 fps? It wasn't quite easy on the eyes 😉

Weiter so!
Well done. It would be good if there were better visual cues about which objects can be stood on.
if you set direcly the velocity, you'll get some thing like that for moving forward:
Code:
body->SetLinearVelocity(10, 0);

but there will be a problem if the surface isn't plane:
@kiro: I'm afraid the game is pretty cpu consuming. The fps is at 24, but if you don't own a dual core, the framerate drops. I did quite some optimizing, but i guess that many visual plains, a lot of sounds and physics together do need power. If there was hardware graphics acceleration in flash, it would be much faster for sure.

@maroxe: You only need to set the x component and keep the y component of linear velocity as it is. Something like this:

body.setLinearVelocity ( 10, body.getLinearVelocity().y );

or dirty

body.m_linearVelocity.x = 10;
yeah your right, thanks for your help 🙂
huesforalice: When you tap the direction Tinger's facing, you move a discrete amount, much larger than 1 frame x Tinger's max speed. That suggests to me you are not merely setting his velocity, but also his position. Is that so?

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