Godot we have a problem, will not run game Looney Lips

I have been following the Godot course for several videos now and in the latest video, we made a storybook node, and such well now my code will not play because of lines 12, 21, 22. please help

1 Like

ok so problem persisted from var current_story it should have been **var current_story = {} **. hope this helps anyone who happens to find this.Corrected code

1 Like

really sorry i somehow missed this post :frowning:

yep, its basically down to Godot not being able to tell ahead of time what the variable is meant to be, and if we leave it to figure it out itself, then it gets it wrong. so we have to explicitly declare it as a dictionary at design time in code so theres no ambiguity at runtime.

glad you got it working.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms