Computer Science Canada

Is it possible to set the origin of a sprite/pic?

Author:  flyingspartan [ 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!

Author:  nosleepdemon [ 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.

Author:  Insectoid [ 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.


: