0 votes

I have a 2d level generator that writes a randomized array, then builds a tile map from it. I want to rebuild that tile map in a viewport to use as a minimap. However, I'm not clear on if there's an ideal way to reference the array from the first node in the viewport node? nodepath doesn't seem to work (or i'm not doing it correctly)

in Engine by (12 points)

1 Answer

0 votes

It is best to send this array in a signal. I also did minimap earlier, and every Tile I built I sent with signal, so minimap builded itself too. Optionally You can pass this array to Autoload script and make minimap download it from there

by (7,925 points)
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 Frequently asked questions and 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 [email protected] with your username.