Upside-down Piranha Plant (npc-51) not aligned properly [Solved]

Description: It's archive, posting new is here http://wohlsoft.ru/forum/viewforum.php?f=11

Sambo M
Topic author, Count
Count
Avatar
Sambo M
Topic author, Count
Count
Age: 25
Reputation: 15
Posts: 264
Joined: 27 Jun 2014

Post #1by Sambo » 25 Oct 2014, 8:06

The upside-down Piranha Plant has no offset on the grid, so it isn't lined up properly when placing. I checked the config file, and "grid-offset-x" for that NPC is set to 16, but it doesn't seem to have any effect.
Image
Current Project:
Image

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ
  • 1

Post #2by Wohlstand » 25 Oct 2014, 12:50

Sambo wrote:The upside-down Piranha Plant has no offset on the grid, so it isn't lined up properly when placing. I checked the config file, and "grid-offset-x" for that NPC is set to 16, but it doesn't seem to have any effect.
grid-offset values should be less than 1/2 of grid value to have effect.

Sambo M
Topic author, Count
Count
Avatar
Sambo M
Topic author, Count
Count
Age: 25
Reputation: 15
Posts: 264
Joined: 27 Jun 2014

Post #3by Sambo » 29 Oct 2014, 4:00

The grid offset is half of the grid size. The plant isn't lined up correctly, though, and I didn't change anything in the config file. (on that NPC)
Image
Current Project:
Image

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #4by Wohlstand » 29 Oct 2014, 10:29

Sambo wrote:The grid offset is half of the grid size. The plant isn't lined up correctly, though, and I didn't change anything in the config file. (on that NPC)
Oh, may by you have old configs? I just remember, was a discussion about them where we fix them.

http://www.supermariobrosx.org/forums/viewtopic.php?p=76634#p76634

Wohlstand wrote:So this means, I need to use the "grid-attachement-style=1", to align the piranha plant into the center then? Because it would need 16 pixels to get aligned right, but you say I cannot use more than half of the "grid=32"-value, which would be a "grid-offset-x=16". Am I right, or do I still misunderstand that?
I think, I will make easer:
I will set grid size 16x16 AND to upside piranha, and to Piranhacus Giganticus.

Before fix:
Image

After config update to grid=16, grid offset x=8 for Piranhacus Giganticus (upside piranga I was leave with current)
Image

Note: All offsets and positions I was researched directly from SMBX, and when you will try same in the SMBX, you will see same bug, but in PGE you always can edit grid size and offset for each item.

Sambo M
Topic author, Count
Count
Avatar
Sambo M
Topic author, Count
Count
Age: 25
Reputation: 15
Posts: 264
Joined: 27 Jun 2014

Post #5by Sambo » 30 Oct 2014, 2:00

I just set the grid size to 16x16 to fix the issue.
Image
Current Project:
Image


Return to “Troubleshooting”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest