user friendly solution to add_child() or instance() for quick testing or simple games #4088
yankscally
started this conversation in
Scripting
Replies: 1 comment 3 replies
-
Like InstancePlaceholder is meant to be used in the editor but can be used in other ways too. Also, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Concept 1: an instance node that is 'hidden' at the start but is loaded the same as onready var etc. This adds 4 set players to a scene. If no Vector is given, it could use its placement in the world scene as default.
concept 2: spawning the same bullet a bunch of times
honestly, these are only suggestions. I'm sure there are lots of ways to make the tree relations and instancing things into the scene a little easier, but it would be nice to have the editor do some of the work like, yeah it makes sense to spawn this arrow directly from this bow. GDScript code is really nice to use but instancing seems to feel really difficult. its something I struggle with a lot in Godot and it feels like thats where I get the most problems as a beginner. As a result in a 2D game I used show() and hide() so much that the title screen is embedded in the map. I felt like I was supposed to know how to instance properly but the workflow always catches me out somewhere and I spend more time fixing that, and most of the code is hard to read. Its also difficult to visualise adding nodes to a tree.
Beta Was this translation helpful? Give feedback.
All reactions