Skip to main content
GameDev.net gamedev.net
🔒 Locked

Scan room while wandering

Started by TheDodo Oct 21, 2011 at 7:37 PM 0 replies 800+ views
Original Post
TheDodo
TheDodo
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.
DarkZlayer
DarkZlayer

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?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.