This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hello, I am learning Godot, and I already have an idea and a lot of art for a game I'd like to make. It's going to consist of different levels, but something I'm running into is how I'd implement that. For my first level, I have this. What I'm wondering is whether or not I should import a large sprite for my level, since I've already designed it, or use tiles. One drawback I've found to using tiles is that although there are a lot of repetitive textures in the level, there are a lot of unique ones as well, like the windows for example, which I made individually, or the bookshelves. Another drawback is connected tiles, like the roof and the wood for my buildings, I'm just not sure how I could implement that. I found a website that takes an image, and produces a tileset and a tmx file, so I don't waste disk space on repeating textures, and memory when rendering. Is it a simple process to import a tmx file into Godot, and have easy control over collisions and functionality? Any help is appreciated.

in Engine by (12 points)

1 Answer

0 votes

Based on the uniqueness of the design, I agree that a Tilemap probably doesn't make sense. However, rather than one, huge image - you could split that large image into a number of screen-sized chunks as really that's all you'll see at any given time anyway. Then, you could add / remove chunks as the game scrolls...

by (22,704 points)

Thanks, I have a follow-up: Does Godot automatically not draw Sprites that are off-screen, or would I have to program that?

Godot should attempt to cull sprites that are off-screen, though I don't know the details here. You can always toggle the visibility property of the off-screen items to be sure.

Good to know. My last question is, how would I go about setting up collisions for this?

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.