I want to trigger an event every time the cursor moves on a new tile in a tilemap
Develop games in your browser. Powerful, performant & highly capable.
Add two variables CellX, CellY.
On every tick If CellX not equal Tilemap.SnapX(Mouse.x) OR CellY not equal Tilemap.SnapY(Mouse.Y) -> Set CellX to Tilemap.SnapX(Mouse.x) -> Set CellY to Tilemap.SnapY(Mouse.y) -> ... other actions