Is it possible to set the origin of a sprite/pic?
Author |
Message |
flyingspartan
![](http://compsci.ca/v3/uploads/user_avatars/14357544134b09ca587fa37.jpg)
|
Posted: Sun Nov 22, 2009 6:27 pm Post subject: Is it possible to set the origin of a sprite/pic? |
|
|
I just started Turing a few months ago after having used game maker for a few years so I don't know if the terminology I'm using is the same or similar to what the rest of the programming world uses so bear with me.
I want to know if it is possible to set the origin of a sprite or pic in Turing. By that I mean the place where the sprite is located in relation to the sprites x,y coordinates. I know you can change whether its centered on x,y or x,y is the bottom left corner. What I want to know is if that can be changed or if the centered true and false settings are all I have. Thanks in advance! |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
nosleepdemon
|
Posted: Sun Nov 22, 2009 8:49 pm Post subject: Re: Is it possible to set the origin of a sprite/pic? |
|
|
I'm pretty sure you can only use the bottom left hand-corner or the center of the image. See Sprite.SetPosition in the help file. |
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Sun Nov 22, 2009 9:14 pm Post subject: RE:Is it possible to set the origin of a sprite/pic? |
|
|
You can always draw it at x+10, y + 10 or whatever if you want. You should never need it at any spot other than the bottom left or center. Make sure the image is cropped right and whatever. |
|
|
|
|
![](images/spacer.gif) |
|
|