aliens

Author Topic: Minor Sprite Issue  (Read 2754 times)

Offline Keth01

  • Captain
  • ***
  • Posts: 50
    • View Profile
Minor Sprite Issue
« on: April 19, 2018, 11:16:25 am »
Hi there,

A weapon bigsprite I've modded in is displaying off-centre in the inventory slot for the hand and the selection window on the main battlescape view, but oddly if you move it down to the ground in inventory it aligns with the grid just fine.

As the image is, ah, borrowed from FMP I'm pretty confident the image itself is not to blame, and all the other causes for the problem I can think of would affect all display locations equally.

But I thought I'd step past my own ignorance and ask if anyone has encountered this issue before?

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
Re: Minor Sprite Issue
« Reply #1 on: April 19, 2018, 11:59:20 am »
sometime you got the image dimension wrong causing the offcenter on the grid ex:
    invWidth: 1
    invHeight: 1
on an
    invWidth: 2
    invHeight: 3
image

Offline Keth01

  • Captain
  • ***
  • Posts: 50
    • View Profile
Re: Minor Sprite Issue
« Reply #2 on: April 20, 2018, 04:27:31 am »

That was it :) Copy-paste issue from another item I was using as a base for the code. Thank you!