0 votes

Hi. I would like to have a general "Entity" scene that makes use of timers in its script. Is there any way I can avoid manually recreating each timer used by the script in every scene that extends the Entity script? Thanks.

asked May 15 in Engine by pulsewidth (15 points)
reshown May 15 by kidscancode

1 Answer

+1 vote
Best answer

Inheritance works with scenes as well as scripts. Click Scene -> New Inherited Scene.

For an example, see this tutorial I made to demonstrate: http://kidscancode.org/blog/2018/01/godot3_inheritance/

answered May 15 by kidscancode (4,172 points)
selected May 16 by pulsewidth

Thank you! :)

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 How to use this Q&A? before posting your first questions.