Grid Bug with npc-258

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 » 4 Sep 2014, 6:19

If I change the grid size on npc-258 (SMW Blue coin) from 32 to 16 in the config file, the coin becomes offset by 8 pixels when snapping to the grid (I can't tell if to the left or to the right). This happens both with custom GFX over the npc and with default graphics.
Image
Current Project:
Image

Veudekato M
Viscount
Viscount
Avatar
Veudekato M
Viscount
Viscount
Reputation: 79
Posts: 369
Joined: 19 Feb 2014
Location: Russia

Post #2by Veudekato » 4 Sep 2014, 12:58

can you give ini file and level? try to disable grid . (auto align). and check custom graphics code. (graphicssize=..)
My channel (PlatGEnWohl news and tutorials , smbx tests):
http://www.youtube.com/channel/UC6h-42umT14iR1wa3VkOs3Q

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 #3by Wohlstand » 4 Sep 2014, 16:01

Sambo wrote:If I change the grid size on npc-258 (SMW Blue coin) from 32 to 16 in the config file, the coin becomes offset by 8 pixels when snapping to the grid (I can't tell if to the left or to the right). This happens both with custom GFX over the npc and with default graphics.
You forgot edit grid offset value. Also: grid offset both x and y should have values less than half of grid size.

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

Post #4by Sambo » 5 Sep 2014, 4:37

I have these gfx codes in the config file:

Code: Select all

gfx-offset-x=0
gfx-offset-y=0
gfx-height=32
gfx-width=24
grid=16
grid-offset-x=4
grid-offset-y=0

All the codes look like they should work right to me.

Also, I changed the SMB3 gold coin and SMW Dragon Coin's grid size to 16 pixels, and they still offset correctly.
Image
Current Project:
Image


Return to “Troubleshooting”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest