0 votes

Basically, I want to display a grid where each node is vertically offset by a height value. It's also important to me that I know which tile the mouse is pointing at. It's done in games like roller coaster tycoon 1 and 2, in transport tycoon and I think in simcity.

So far, I tried tilemaps, but those can't do height levels. I could do the landscape with a bunch of them stacked on each other, but that would only work as long as everything is 'flat' not with something 'buildt' on a tile. (Also, I wanted to support many height levels, soooo...)
I was able to just draw everything on a canvas, both using a spritesheet and with triangles. This method would also work with stuff being placed on the tile, even several things on the same tile. However, I have no idea how I'd know where the mouse is pointing at.

I'm not out of options yet. I would check out if I can raytrace my mouse position if my isometric landscape is actually 3D. And if that does not work, one option is to use several tilemaps for the landscape just so I can pinpoint the mouse position on them, but then place everything else manually. Still, it seems I should ask if anyone has ever done something like that before, or at least what those who know what they are doing would do.

in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.