Jump to content
  • Advertisement

Archived

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

Oddball

Working with a Matrix...

This topic is 6190 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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!