Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ogrotten | |
Old Version | Published before Godot 3 was released. |
Inheritance:
starting here as my nodetree, I assume that the Play button node could use data from the Root node. How would it refer to it? In js/python, there’s no special thing to refer to in-scope data from a parent, you just use it.
Dictionaries:
var DRUGS={
"Stimulator": [1000,
4400,
.8,
.3,
2.5,
"Heals "],
what’s the notation to refer to, say, the .8 entry in the dictionary?
Last question:
I don’t want to have to keep dropping in here to find clarification of such simple things. are either of these put concretely in the docs or someplace official?
I don’t see inheritance in that scene tree other than all the controls that are Control (plus all the classes in between) and the scripts that extend a Control too.
Could be better (for you and the possibility to get answers) to make a single question per post, some people may prefer not to answer if has something to say about one thing out of 3.
eons | 2017-07-25 21:42