Archived

This topic is now archived and is closed to further replies.

Oddball

Working with a Matrix...

Recommended Posts

Oddball    122
I''ve never used DirectX before, and I''m starting to learn DirectX 8. I''m creating a 2D game using Direct3D, and I''m using a matrix to scroll the world under the character. I have a few questions about this- 1. How do I prevent the matrix from moving the character while still moving the world? (I''m using D3DXMatrixTranslation(...)) 2. How can I do basic collision detection? For example, so I know when the character bumps into an enemy or tree or something? 3. This isn''t very important, and doesn''t really relate to matrices, but... is there a way for me to change texture coordinates without locking the vertex buffer? I''d appreciate it if you could help me out with any of the above. Thanks!

Share this post


Link to post
Share on other sites