Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] Getting the positions of a layer
#1
Hello, I don't know if it's the right sub-forum to post suggestions in, but I have a suggestion that might be useful.

We can set the position of a layer with TLN_SetLayerPosition(int layerId, int x, int y)

But sadly we can't get the position of this layer. We can track the X and Y values independantly of the layer, but there is a risk of being out of sync with the layer's position if it's badly coded.

So my suggestion is adding functions to get the positions of the layer, like TLN_GetPosX(int layerId) and TLN_GetPosY(int layerId)

I think it would be way more simpler this way.

I also suggest the similar thing for Sprites.
Reply


Messages In This Thread
[Suggestion] Getting the positions of a layer - by System64 - 03-06-2022, 10:52 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)