0 votes

I have a wall with a static body2d as the main node. There is a CollisionPolygone2D also and this is making up a cave like wall. When I run the preview thing in the engine everything shows up and it all works but when I make it an .exe file for my computer the walls dont show up. The main character does though. Please can you help as I cannot go further with my game without being able to see the walls.

in Engine by (37 points)

1 Answer

+2 votes
Best answer

CollisionPolygon2D only shows up in the editor and sometimes in the game preview if debug collision shapes are enabled. However, as the name says, this is only for debug purposes, so it will never show in an exported game.

If you want your cave to show up, you need to have a proper visual node, such as Polygon2D.

by (29,120 points)
selected by

I have fixed it now as I had tried to use a collision polygon as a paint tool.

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.