My code is executing two time

gfourniergfournier Posts: 4Member

When I play my scene its like my code is running two time?

What I'm I doing wrong?

Answers

  • TwistedTwiglegTwistedTwigleg Posts: 892Admin

    Looking at the code, I do not see anything that would be making the code run twice.

    Looking at the output, it seems that Guilda and Rosana are missing, but the correct amount of names are being printed (there are four members, and four printed names), which means the code is at least getting the correct amount of children.

    My hunch is that something is not set up right in the Guilda and Rosana nodes, or something in the displayName function is not working correctly.

  • gfourniergfournier Posts: 4Member

    Pretty dump of me, since I've put this scene in the autoload, it's normal to run twice

  • TwistedTwiglegTwistedTwigleg Posts: 892Admin

    Pretty dump of me, since I've put this scene in the autoload, it's normal to run twice

    That would explain it. I cannot even count how many times I have made mistakes like this :smile:
    I'm glad you were able to figure it out!

Sign In or Register to comment.