0
\$\begingroup\$

Note node_link

I downloaded and tried out the Rakugo addon out of the box and I ran into this problem:

'Parser Error: Identifier 'node' is not declared in current scope'

If you look you can see that node is an argument variable and the kwarg is meant to be a method (name) of that arg.

It seems that gdscript does not allow this.

My question is, 'how do I fix this or work around it?'

\$\endgroup\$
3
  • 1
    \$\begingroup\$ You could default node_id to null in the parameter list, and then use an if statement within the function to set it if it's not set. \$\endgroup\$ Commented May 19, 2019 at 14:39
  • \$\begingroup\$ @flesk That worked out well! I did run into another unrelated problem though. \$\endgroup\$ Commented May 22, 2019 at 1:35
  • \$\begingroup\$ Glad it worked out. :) \$\endgroup\$ Commented May 23, 2019 at 5:08

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.