Tilengine - The 2D retro graphics engine forum
Release 2.9.1 - Sprite pivot and layer enable - Printable Version

+- Tilengine - The 2D retro graphics engine forum (http://tilengine.org/forum)
+-- Forum: Tabloid (http://tilengine.org/forum/forumdisplay.php?fid=4)
+--- Forum: News & Announcements (http://tilengine.org/forum/forumdisplay.php?fid=6)
+--- Thread: Release 2.9.1 - Sprite pivot and layer enable (/showthread.php?tid=1075)



Release 2.9.1 - Sprite pivot and layer enable - megamarc - 03-24-2021

This small update introduces an useful feature: the ability to set the sprite's pivot position. Until now it was always fixed to top-left corner, but now it can be set freely inside its bounding rect. This pivot point sets the exact placement and scaling source. For gameplay configurations that use some kind of 3D projection -like 3/4 or racing roads-, it's much more natural to pivot sprites at the bottom middle, where the "ground" is.

GitHub project is updated and documentation online:
http://www.tilengine.org/doc/md_sprites.html#autotoc_md93

In addition, a layer can be enabled again with TLN_EnableLayer after it has been disabled with TLN_DisableLayer, as long as it was previously configured:
http://www.tilengine.org/doc/md_layers.html#autotoc_md39


RE: Release 2.9.1 - Sprite pivot and layer enable - megamarc - 04-04-2021

Hi,
I've updated Python binding to latest engine release 2.9.1

GitHub page: https://github.com/megamarc/PyTilengine
Reference docs: http://www.tilengine.org/doc_python/