Hi all.
New to PixiJS, I'm working on a divination card game.
I just want to add a basic animation on card mouseover/mouseout: just change the z position +/-10.
In my code mouseover works, but mouseout don't:
card.interactive = true;
card.on('mouseover', onMouseOver);
card.on('mouseout', onMouseOut);
function onMouseOver(event) {
event.target.position3d.y += 10;
}
function onMouseOut(event) {
console.log(event.target); // Fire null
event.target.position3d.y -= 10;
}