View unanswered posts | View active topics It is currently Mon Jan 06, 2025 11:00 pm



Reply to topic  [ 5 posts ] 
 Offsets quick question 
Author Message

Joined: Sun May 02, 2010 10:38 am
Posts: 4
Location: Northern Ireland
Reply with quote
Post Offsets quick question
From what side are offsets measured from in the x and the y?

Ive searched the useful threads and cant really find anything


Fri May 07, 2010 8:40 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Offsets quick question
If you set your SpriteOffset to be -(half x), -(half y), then - is left and up, + is right and down.


Fri May 07, 2010 8:49 pm
Profile

Joined: Sun May 02, 2010 10:38 am
Posts: 4
Location: Northern Ireland
Reply with quote
Post Re: Offsets quick question
Is this from the top left hand side?


Fri May 07, 2010 8:51 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Offsets quick question
Well, I'm not entirely certain, but I believe that you can visualize the SpriteOffset as the amount to move the sprite over the offset, which is in the upper left corner, so that both negative values go left and up. After that, you move the points themselves over the sprite.

I'm not all that certain of this information though.


Fri May 07, 2010 9:02 pm
Profile

Joined: Sun May 02, 2010 10:38 am
Posts: 4
Location: Northern Ireland
Reply with quote
Post Re: Offsets quick question
okay, thanks :grin: Ill experiment a bit more to perfect it. Again, thanks


Fri May 07, 2010 9:05 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.044s | 14 Queries | GZIP : Off ]