-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make node and packed scenes less redundant #681
Comments
You can avoid this with built-in scripts too. |
@KoBeWi I'm not sure what you mean |
it still doesn't change the node type when your inherit from something else though. also I still think that treating the node or scene ad a script would be better.
|
I realized godot would also need a way to choose which script type you used since scripts would no longer be assignable. I was thinking of a couple of different ways
also I forgot to mention while this is a big change it also could allow people to actually make their own node types easier.
|
realistically, I think what we really should be pushing for, is to improve the system for "built-in" scripts mentioned above. this existing system is meant to solve the issues you've mentioned, but imho, it is in dire need of improvement. it doesn't work with live coding |
what I do find confusing is the idea that packed scenes have a node hierarchy and scripts don't. the idea of this suggestion was to merge the idea of a script and scene/node so that scripts while having the ability to not be nodes, scenes and nodes would be scripts and in turn removing this confusion. I also kinda like the idea of not having the script name next to the node in the node browser. |
this seems to be a very similar issue. godotengine/godot#17418 I think right now we are stuck in sort of a bad limbo with the way godot scripts work. note godot next already tries to do the behaviors thing although the behavior part is out of scope of the issue the idea would be that...
also I think if nodes were in fact just scripts this issue wouldn't be the case since you could just create the script like normal and inherit the type you want to extend. this also comes to the issue that we need a id for our nodes so gdscript would need to be modified to require a class name in front of extends like I said earlier |
so thinking more about this I think godot should get rid of the node/script workflow and adopt a class based inheritance workflow. I will be creating a issue about it however this one is obsolete |
Describe the project you are working on:
Space ship game
Describe the problem or limitation you are having in your project:
Object inheritance and node inheritance
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
ok so I was wondering if scenes a scripts could be somewhat combined
basically script would stay the same.
the only difference is that nodes and scenes would treated as scripts
these are my reasoning behind it.
things to note..
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:

If this enhancement will not be used often, can it be worked around with a few lines of script?:
this would be used just as much as the current system. it just makes a node or a packed scene take up 1 resource other then 2 and enforces strong typing when inheriting
Is there a reason why this should be core and not an add-on in the asset library?:
it makes godot less confusing
The text was updated successfully, but these errors were encountered: