–1 vote

So yeah I wanted to create a system for progression with unlocking levels (if you pass level 1 you unlock level 2 etc). My idea was to add variable locked which is set to 1 and lockedcheck to each level set for 1 on level 1 etc and I achieved that by using export(int) variable and if the locked would be bigger or equal to lockedcheck it would pass by it isn't working, well it worked for like 3 times but I did some changes and I don't know what exactly and it stopped working after that. Also I found out that locked_check variable which is set in inspector is always 0 in every level. Do anyone know how to fix that?

Godot version Godot Engine v3.5.stable
in Engine by (17 points)

can you share some code?

1 Answer

0 votes

When exporting, you can set a default value.

by (1,057 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.