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 want to make it possible to build fences in my game, but the problem is I want it with a bitmask or that it connects automatically. Like the fences at Clash of clans, how do I do that?

Godot version 3.2.3
in Engine by (86 points)

1 Answer

+1 vote
Best answer

What's the problem you're running into? That looks like a basic autotile.

by (84 points)
selected by

Hi, how can i build in Game with bitmask and with the Code that the Player can build a fence... Can you say a Code to build ingame?

If you want to change a tile with code, you'll want to specifically look at
setcell ( int x, int y, int tile, bool flipx=false, bool flipy=false, bool transpose=false, Vector2 autotilecoord=Vector2( 0, 0 ) )

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.