Updated tutorial_gdscript_efficiently (markdown)

reduz 2014-09-20 08:47:30 -07:00
parent 8d5961f958
commit 66d179daee

@ -248,15 +248,15 @@ var d = {
}
print("Name: ", d.name, " Age: ", d.age ) # used "." based indexing
d.name="caroline" #works for assignment
# indexing
d.nother="rebecca" #this doesn't work (use syntax below to add a key:value pair)
d["mother"]="rebecca" #this works
d.name="caroline" # if key exists, assignment does work, this is why it's like a quick struct.
```