MidHandle on Sprite Textures?


(Posted 1 year ago) RonTek

Does applying texture to Sprites allow or support some sort of MidHandle where you can center it and is still in effect when you resize or scale it? I have noticed this some time ago when testing out a sprite for a billboard effect and the sprite coordinate seems to be on the bottom right edge when getting entity position.

(Posted 1 year ago) markcwm commented:

If I understand correctly, you use HandleSprite for this, as in B3D. I'll need to check how B3D does it, you would probably need to update the handle if scaled.

(Posted 1 year ago) RonTek commented:

Awesome thanks Mark! I forgot about this one. needs some adjustment on my side, but works perfectly!

(Posted 1 year ago) markcwm commented:

I haven't done anything to sprites yet as I'm not sure if you mean a 3d handle or 2d handle.

(Posted 1 year ago) RonTek commented:

Yes, it is the 2d handle. Anyway, it works the same as blitz3d so this is really nice!

Reply To Topic

Please log in to reply