#50917 - QuantumDoja - Sun Aug 14, 2005 3:17 pm
Hi, I have a sprite in a bounding box like so...
Assume that the bouding box is 64px by 64px, the top left of the bounding box is the position of the sprite.
There are approximately 40px of 'space' between the edge of the bounding box and the acctual sprite itself....so here is my problem.
I can move the sprite around the screen, limiting the movement so that the bounding box cannot exceed the size of the screen
If however I move the sprite so that I am using the acctual sprite dimensions (so the sprite goes tightly to the left hand corner of the screen when its moved) the sprite flips upsidedown.....
How can i make it so that I can move the sprite to the far edge without the sprite flipping?
_________________
Chris Davis
Code: |
______________ | _ | | | | | | |_| | | | |____________| |
Assume that the bouding box is 64px by 64px, the top left of the bounding box is the position of the sprite.
There are approximately 40px of 'space' between the edge of the bounding box and the acctual sprite itself....so here is my problem.
I can move the sprite around the screen, limiting the movement so that the bounding box cannot exceed the size of the screen
If however I move the sprite so that I am using the acctual sprite dimensions (so the sprite goes tightly to the left hand corner of the screen when its moved) the sprite flips upsidedown.....
How can i make it so that I can move the sprite to the far edge without the sprite flipping?
_________________
Chris Davis