All Questions

Community

L
Syaded

Cyclic dependency error

In the last section at 5:50 line 13 if I used

if parent is State:

I'll get a cyclic dependency error on 2:10. Using

if not parent.is_in_group("state_machine")

should get rid of the error

  • Nathan Lovato replied

    Thanks for sharing. I can't wait for these to be fixed! Hopefully, with the next major release, the GDScript compiler will handle that, as cross-referencing types is something really common.