how to change textures/sprites

Discuss new features and future development.
Post Reply
Mister Smee
Posts: 1
Joined: Wed Dec 07, 2011 4:06 pm
Contact:

how to change textures/sprites

Post by Mister Smee »

how can textures be changed in chipmunk and how are sprites changed so for example in a collision sprite A changes to sprite B
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: how to change textures/sprites

Post by slembcke »

Chipmunk doesn't do any rendering (other than the debug rendering used in the demos). So changing a texture/sprite is completely up to whatever graphics library you are using.

You would set up a collision handler to detect the collision however: http://chipmunk-physics.net/release/Chi ... nCallbacks
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests