when i’m at the open door it won’t let me go out
code: here
Can you please upload your full code?
From what u have given it seems working fine to me.
As this post is 21 days old, I think it’s solved.
Had a look at your code-snippet and find the indentation looks very strange.
Some guesses, cause it’s just a code-snippet and not the full-code:
- You did not close the “state_lock_1()” funktion. As a result of this, “state_roaming_0()” and “state_roaming_1()” are defined inside “state_lock_1()”
- You did not close the second “else-if” expression in “state_lock_1()”.
Happy coding.
Chris
1 Like
Marking as solved but will change if the original poster responds to advise other wise.