8

(body.get_parent().get_children())[0].play("open")

I really gotta learn how godot works to avoid doing crap like this

Comments
  • 1
    If it sounds terrible, but it wor... no, it's just terrible.
  • 0
    if i understand correctly what you're doing...

    ... hierarchies like this usually have something like .get_first_sibling() which would save you the roundtrip.

    the play thing i assume is for anim or sound, and...well... some engines like stringly typing, so nothing u can do about that?
  • 0
    @Midnigh-shcode theres a th8ng called a signal in godot, and you can subscribe to those, but i started working with it seriously like a week ago
Add Comment