isometric action game

Official forum for the Chipmunk2D Physics Library.
Post Reply
natearn
Posts: 2
Joined: Tue Feb 21, 2012 9:32 am
Contact:

isometric action game

Post by natearn »

Hi,

I'm trying to write a 2d isometric action game and have been looking into Chipmunk to handle the motion and collision detection for it. After spending some time reading about this library I'm finding it difficult to decide how to go about implementing character movement. I'd like a character to, for the most part, move at a constant velocity in the direction that the user is pressing (arrow key), but I get the impression that direct velocity manipulation of simulated bodies is not the ideal way to use this library. I'd also like to create areas on the screen that apply either forces or constant velocities to any body caught inside the area. The situation that I am most uncertain about is when the user releases a movement key; the character should stop, unless it is in one of the areas I described.

I'm wondering if anyone could give me some advice on how to proceed.

Thanks you,
natearn
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: isometric action game

Post by slembcke »

You should take a look at Chipmunk's "Tank" demo. It uses joints to fake friction in a top down environment. I've used it a couple times now and it works quite well.

There is also this long thread you might find useful about using that same method for a top down adventure game:
http://chipmunk-physics.net/forum/viewt ... f=1&t=1377
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
natearn
Posts: 2
Joined: Tue Feb 21, 2012 9:32 am
Contact:

Re: isometric action game

Post by natearn »

Thank you for the quick reply. I've taken the time to experiment a little with that technique and it seems to be doing what I wanted. Much appreciated.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests