Scan room while wandering

Started by
0 comments, last by DarkZlayer 12 years, 6 months ago
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.
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?

This topic is closed to new replies.

Advertisement