CodeBase - 360 Sprite Motion
Return to the CodeBase listing
Category: 2D
Version: 1.0
Information
Uploaded: 10th Aug 2011 19:07
Modified: 9th Sep 2011 23:11
Author: Webber
Summary
A sprite that rotates, and follows the mouse.
Full Description
This gets the positions of the mouse, and position of a sprite to calculates the angle, speed, and new position, using trig and stuff.<br /> <br /> Basically the sprite points towards the mouse, and follows the mouse.<br /> <br /> Could be a useful program if you need a 2D object to accurately follow a point on the screen.<br /> <br /> Credit to The Game Guy would be appreciated, but is not required.<br />
Comments
No comments yet.