Gigicom
Member
Hello,
I am currently working on an inventory and am trying to position the slots properly over the inventory sprite.
I already did this once before, just with a smaller resolution and with a little different system.
For some reason though, the slots (blue) now are always a little bit ("half a pixel") misaligned with the inventory slots, even though they're the same size (64x64).
The camera and the inventory sprite (with the black transparent border) are both 1536x864.
The slots and the inventory objects are positioned with this code:
Slot Step Event:
Inventory Step Event:
I am currently working on an inventory and am trying to position the slots properly over the inventory sprite.
I already did this once before, just with a smaller resolution and with a little different system.
For some reason though, the slots (blue) now are always a little bit ("half a pixel") misaligned with the inventory slots, even though they're the same size (64x64).
The camera and the inventory sprite (with the black transparent border) are both 1536x864.
The slots and the inventory objects are positioned with this code:
Slot Step Event:
Code:
x = camera_get_view_x(view_camera[0]) + 118;
y = camera_get_view_y(view_camera[0]) + 122;
Code:
x = camera_get_view_x(view_camera[0]);
y = camera_get_view_y(view_camera[0]);