• Advertisement


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

Working with a Matrix...

This topic is 6065 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

  • Advertisement