Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Is it possible to set the origin of a sprite/pic?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
flyingspartan




PostPosted: 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!
Sponsor
Sponsor
Sponsor
sponsor
nosleepdemon




PostPosted: 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.
Insectoid




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: