Jump to content
  • Advertisement
Sign in to follow this  
TheDodo

Scan room while wandering

This topic is 2614 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 am using C# and XNA, and I am wanting my sprites to look like they are scanning the room for enemies. I need to be facing the direction they are going and then rotate slightly each way with the center point being the direction the sprite is facing. I can do each one separately, but I can't figure out how to combine them. Any help will be appreciated.

Share this post


Link to post
Share on other sites
Advertisement

I am using C# and XNA, and I am wanting my sprites to look like they are scanning the room for enemies. I need to be facing the direction they are going and then rotate slightly each way with the center point being the direction the sprite is facing. I can do each one separately, but I can't figure out how to combine them. Any help will be appreciated.


IF you can do each separately then combining them is simply a matter of calling the functions... Also, how do you use a point to represent direction? Could you post your code?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!