planetdamage
Member
Hi everyone,
I wonder if any one of you can help me with this very rookie thing I cannot wrap my head around.
I'm trying to make a boardgame of sorts. The board consists of different tiles (all part of obj_tile on "Instances" layer). Actors (players, enemies) are smaller sized sprites that step on tiles (these are rendered on the "Movers" layer above "Instances". For the sake of simplicity I added a description text to each tile and actor that is rendered at the bottom of the screen (every object's Mouse Enter and Mouse Leave events fill up a "DescrMessage" text or empty it, respectively).
So if I hover over a tile with a character on it, my DescrMessage displays the tile text, I move on to the smaller character sprite in the corner of the tile, the DescrMessage displays the character text - and when I move back to the same tile position, hovering on the bigger tile, it does not re-display the tile desription, although it hovers above it.
What causes this, where am I making a mistake? (I thought that when I move away from the character token, the mouse hovers to a different sprite on a different layer so I should not even bother with instance depth checks.
Thanks in advance!
I wonder if any one of you can help me with this very rookie thing I cannot wrap my head around.
I'm trying to make a boardgame of sorts. The board consists of different tiles (all part of obj_tile on "Instances" layer). Actors (players, enemies) are smaller sized sprites that step on tiles (these are rendered on the "Movers" layer above "Instances". For the sake of simplicity I added a description text to each tile and actor that is rendered at the bottom of the screen (every object's Mouse Enter and Mouse Leave events fill up a "DescrMessage" text or empty it, respectively).
So if I hover over a tile with a character on it, my DescrMessage displays the tile text, I move on to the smaller character sprite in the corner of the tile, the DescrMessage displays the character text - and when I move back to the same tile position, hovering on the bigger tile, it does not re-display the tile desription, although it hovers above it.
What causes this, where am I making a mistake? (I thought that when I move away from the character token, the mouse hovers to a different sprite on a different layer so I should not even bother with instance depth checks.
Thanks in advance!