how to change textures/sprites

Discuss new features and future development.

how to change textures/sprites

Postby Mister Smee » Wed Dec 07, 2011 4:10 pm

how can textures be changed in chipmunk and how are sprites changed so for example in a collision sprite A changes to sprite B
Mister Smee
Posts: 1
Joined: Wed Dec 07, 2011 4:06 pm

Re: how to change textures/sprites

Postby slembcke » Wed Dec 07, 2011 5:05 pm

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: ... nCallbacks
Can't sleep... Chipmunks will eat me...
Check out our latest projects! ->
User avatar
Site Admin
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Return to Features/Development

Who is online

Users browsing this forum: No registered users and 2 guests