how to change textures/sprites
-
- Posts: 1
- Joined: Wed Dec 07, 2011 4:06 pm
- Contact:
how to change textures/sprites
how can textures be changed in chipmunk and how are sprites changed so for example in a collision sprite A changes to sprite B
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: how to change textures/sprites
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
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/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Who is online
Users browsing this forum: No registered users and 4 guests