Centering enemy NPC record frames

Discuss modding questions and implementation details.
Post Reply
spearman
Posts: 3
Joined: Thu Nov 22, 2018 10:11 pm

Centering enemy NPC record frames

Post by spearman »

Can anyone give a hint on how to take record size, scale, offsets and use them to position the frames within a square of a predefined size? I've tried a few different permutations and I get some results that are close, but some records are still too high or low and not quite centered. Here's an example using a 186px square (using the scale value of -70: 256 - 70 = 186) and shifting the frames by offset.x/2 and offset.y/2:

Image

Note this is not a Unity project so I'm just using the DaggerfallConnect API here.

Post Reply