Search the Community
Showing results for tags 'tilemap interactive pixijs'.
Found 1 result
StefanWeck posted a topic in Pixi.jsHey everybody, I'm currently making a roguelike game which (ofcourse) features a tilemap. Like so: I've started this project without PIXI.js and i've recently started converting everything to PIXI. I've got the tilemap, camera and rendering all entities etc working. But now I have one question. I want to have a mouse over on tiles. If it's a floor tile it has to show a mouse cursor and if there are entities on the tile it has to show a tooltip describing the entity: Only question is, do I accomplish this by making every tile interactive and attaching functions to it, or is the best solution to manually track the mouse position and calculate at which tile the user is pointing ( like I did it before ). Thanks in advance, Stefan.