Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Tiled Plugin for RPG Maker MZ

Allows you to use maps made in Tiled for RPG Maker MZ · By VisuStella, VisuStellaMZ, Archeia

Y-sorting error fix Sticky

A topic by CrypticSky created 15 days ago Views: 24 Replies: 1
Viewing posts 1 to 2
(+1)

I was noticing y-sorting errors when using the Tiled plugin (for example, coming up to a character from below, but their sprites overlapped instead of being underneath the player). Turns out there were cases where sprite.origX and sprite.origY could be undefined? oops.

Adding this line:

sprite.origX ||= 0; sprite.origY ||= 0;

In TiledTilemap.prototype._updateLayerPositions, just before updating sprite.x and sprite.y, fixes this problem.

You're welcome! <3

Developer

Thank you :3