Author Topic: Select sprite center origin  (Read 1966 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Select sprite center origin
« on: February 27, 2020, 11:08:53 AM »
Title explains itself.
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Select sprite center origin
« Reply #1 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?

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: Select sprite center origin
« Reply #2 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
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Select sprite center origin
« Reply #3 on: February 27, 2020, 09:43:29 PM »
That doesn't help well.

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Re: Select sprite center origin
« Reply #4 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.
« Last Edit: February 28, 2020, 07:50:02 AM by Antikore »
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Select sprite center origin
« Reply #5 on: February 28, 2020, 04:05:53 PM »
Oh! I understand!

TingThing

  • Admin and Developer
  • Level 20: Nobom
  • *
  • Posts: 1395
  • Creator and Developer of Platform Builder
    • View Profile
    • Platform Builder Home
Re: Select sprite center origin
« Reply #6 on: May 11, 2020, 04:57:46 AM »
Custom projectile sprites should have their origin in the middle. Is this not the case?

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Select sprite center origin
« Reply #7 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.

TingThing

  • Admin and Developer
  • Level 20: Nobom
  • *
  • Posts: 1395
  • Creator and Developer of Platform Builder
    • View Profile
    • Platform Builder Home
Re: Select sprite center origin
« Reply #8 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.

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Select sprite center origin
« Reply #9 on: May 11, 2020, 04:31:36 PM »
Yeah, which would be useful in PB as well.