Platform Builder Forums

Main => Suggestions => Topic started by: Antikore on February 27, 2020, 11:08:53 AM

Title: Select sprite center origin
Post by: Antikore on February 27, 2020, 11:08:53 AM
Title explains itself.
Title: Re: Select sprite center origin
Post by: CGM on February 27, 2020, 02:45:21 PM
I know about this, but I never really understood it. What does it do, what is it for?
Title: Re: Select sprite center origin
Post by: War on February 27, 2020, 08:32:26 PM
I know about this, but I never really understood it. What does it do, what is it for?
The coordinates of the object are the coordinates of a point, normally the object left corner, and Antikore wants the object center
Title: Re: Select sprite center origin
Post by: CGM on February 27, 2020, 09:43:29 PM
That doesn't help well.
Title: Re: Select sprite center origin
Post by: Antikore on February 28, 2020, 06:57:20 AM
In truth, it helps with custom projectiles with sprites as they rotate very bad in most cases.

Helps centering the rotation of an sprite.
Title: Re: Select sprite center origin
Post by: CGM on February 28, 2020, 04:05:53 PM
Oh! I understand!
Title: Re: Select sprite center origin
Post by: TingThing on May 11, 2020, 04:57:46 AM
Custom projectile sprites should have their origin in the middle. Is this not the case?
Title: Re: Select sprite center origin
Post by: CGM on May 11, 2020, 05:06:45 AM
If that's the case, then why does GMS2 allow you to change it from the center, to something else? I can see how this can help with certain visual aspects.
Title: Re: Select sprite center origin
Post by: TingThing on May 11, 2020, 06:05:19 AM
If that's the case, then why does GMS2 allow you to change it from the center, to something else? I can see how this can help with certain visual aspects.


Sometimes in Game Maker you don't want to rotate around the center point. Also, you may not want to flip a sprite across its center point. Or you may have a 32x32 grid in your room editor and you want to place things offset to the grid. You may want to adjust the origin so that you can place the x and y coordinates directly over something else and have it automatically shift to the right spot because of your origin offset.
Title: Re: Select sprite center origin
Post by: CGM on May 11, 2020, 04:31:36 PM
Yeah, which would be useful in PB as well.