CodeBase - Get Screen Coordinates From Sprite Coordinates
Uploaded: 10th Oct 2011 13:08
Modified: 1st Jan 1970 01:00
Author: Grumpy Jedi
These two functions allow you to return the screen x and y coordinates underneath a particular spot on a sprite.
These two functions allow you to return the screen x and y coordinates underneath a particular spot on a sprite.<br /> <br /> You can use the return values to place sprites at exact locations on other sprites. If you then return the values and update the sprite every loop, you can keep a sprite perfectly placed on another sprite even when it is rotated or resized.<br /> <br /> The functions also take aspect ratio into account so that is not a problem.
No comments yet.