The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I'm trying to develop a 2D physics based game with graphics and levels similar to Alto's Odyssey. Now I am struggling to find a scalable and efficient level design workflow.

I'm assuming that I should create the terrain with curves and polygons and then define many StaticBody2D nodes with matching Polygon2D and CollisionPolygon2D nodes.
I was not able to find a way to automatically generate a CollisionPolygon2D node from a Polygon2D node without adding a specific script for every StaticBody2D node.

I noticed there's a "Create CollisionPolygon2D Sibling" feature for Sprites, but not for Polygon2Ds.

Why there's no such a basic feature? How can it be compensated? Am I looking to the wrong direction?

Thanks for answers.

in Engine by (19 points)

Is there any way you can make modular scenes and string them together? Have one piece that fits into another piece?

Of course I can, but I am mostly struggling with the automatic generation of CollisionPolygon2D nodes from Polygon2D nodes. Thanks for your suggestion though.

1 Answer

0 votes
Best answer

Ok, I figured it out myself.
In Godot 3.2.1 there's a tool icon in the inspector which opens a submenu where you can copy and paste params between nodes.
I copied the Polygon2D params to CollisionPolygon2D and it did the job.
Sorry for the trivial question.

by (19 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.