SOLVED: Godot game crash with code as per lesson

Hi. First time GDScript coder here. I can’t work out why my code won’t run?

Interestingly, viewportSize is Null…

When looking at my screenshot, I worked out I had declared the viewportSize variable again in the _ready() section. I removed the ‘var’ and it works now :slight_smile:

1 Like

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

Privacy & Terms