Rotating A Sprite Towards An Object In XNA(berecursive.com)
submitted by
BeRecursive(35) 3 years, 10 months ago
Often when creating games in 2D you need a sprite to rotate towards another object, whether that be a turret rotating towards an enemy or making something follow your mouse. Regardless of the use of this rotation the principle is the same. In this tutorial I use the basic concept of making something follow the mouse, but the game logic provided should enable you to rotate any sprite towards just about any object on the game screen.
|category: XNA
|Views: 208
tags:
XNA another
Everyones tags:
Your Tags: