All Questions

Community

garred
posted to: Creating the Enemy

Difference between extending from Actor and Actor.gd

Is there any reason to extend the Enemy from the file Actor.gd instead from the Actor class, like we did with the Player?
  • Nathan Lovato replied

    I don't remember exactly why but it's good to know you can do both, as sometimes you don't want to register custom classes with class_name (they appear in the Add Node menu, and you may not want to allow creating one as a node).

  • garred replied

    Oh ok, thanks!

    By the way, I'm really enjoying the tutorials, you guys did a great job!