gdquest-demos / godot-3-demos

Dozens of free and open source demos for the Godot game engine, version 3. Head to the link below for newer demos for Godot 4+
https://github.com/gdquest-demos/
MIT License
1.85k stars 975 forks source link

"Enum" keyword not available in older Godot versions #6

Closed davcri closed 7 years ago

davcri commented 7 years ago

I started following the video tutorials, arriving at the third where I encountered the following little problem: running "01 - Custom camera project" with an old version of Godot returns this error: Unexpected token: Identifier: enum

It seems that GDScript introduced enum in the 2.1.3 version but I didn't find any warning/recommendations in the first three videos about this; maybe an annotation in the third youtube video at around minute 2 (when the script containing the enum keyword is showed), could help in clearing doubts.

Keep up the great work Nathan! :smile:

NathanLovato commented 7 years ago

You can't use annotations with the end screen. But I added a note to the video description and the playlist description. Thanks!