Can I extend entire scenes?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By pulsewidth

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.

:bust_in_silhouette: Reply From: kidscancode

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

For an example, see this tutorial I made to demonstrate: Godot 3.0: Inheritance · KCC Blog

Thank you! :slight_smile:

pulsewidth | 2018-05-16 01:33