CodeBase - Get Screen Coordinates From Sprite Coordinates

Return to the CodeBase listing

Category: Sprite

Version: 1.0

0
0

Information

Uploaded: 10th Oct 2011 13:08

Modified: 1st Jan 1970 01:00

Author:  Grumpy Jedi

Summary

These two functions allow you to return the screen x and y coordinates underneath a particular spot on a sprite.

Full Description

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.

Comments

No comments yet.