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\$
4
  • 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\$
    – flesk
    May 19, 2019 at 14:39
  • \$\begingroup\$ @flesk I'll try that out, thanks! \$\endgroup\$ May 20, 2019 at 1:18
  • \$\begingroup\$ @flesk That worked out well! I did run into another unrelated problem though. \$\endgroup\$ May 22, 2019 at 1:35
  • \$\begingroup\$ Glad it worked out. :) \$\endgroup\$
    – flesk
    May 23, 2019 at 5:08

0

You must log in to answer this question.

Browse other questions tagged .