UnderminersTeam / UndertaleModTool

The most complete tool for modding, decompiling and unpacking Undertale (and other GameMaker games!)
GNU General Public License v3.0
1.13k stars 213 forks source link

X and Y values are not the same as GMS2 #1492

Open SuperSonic472 opened 11 months ago

SuperSonic472 commented 11 months ago

Describe the bug

I'm making a private for now hand decomp of a fangame for a series called Super Cat Tales 2 (https://kittykyatto.itch.io/unfinished-amy-game) and when importing objects i have to place them by hand while the offsets are incorrect. (I am using a 64 by 64 grid like utmt)

Reproducing steps

  1. import 2 overlapping objects from a room
  2. copy the positions from utmt
  3. observe

Setup Details

UTMT Version: Creation code version from Awful's Pizza Place. Windows 10

Unfinished Amy Game https://kittykyatto.itch.io/unfinished-amy-game

Voidymite commented 10 months ago

the games provided really sent me down a rabbit hole... ...but yes, this does happen. i believe it only happens in some cases but i'm not sure, since i once tried extracting x and y positions of room instances and they ended up being VERY off. perhaps you maybe have your sprites centered wrong in this handmade decomp?

Jacky720 commented 6 months ago

I would check the Origin values of the sprites in question-- if they're nonzero, that would likely explain matters.

Miepee commented 2 months ago

@SuperSonic472 have you done what jacky above suggested?