Greetings. I'm a newbie in Godot, and I only programmed used structured programming (instead of OOP) before, so it's been hard to assimilate some Godot concepts.
Well, I'm now programming a quick Asteroids like prototype. I have three scenes for it:
- A Main scene.
- A Ship scene.
- A SmokeParticle scene (I programmed it as a smoke sprite growing and getting more transparent, that I'll use for smoke particles emitted by the ship).
So, first I programmed the Ship scene and its movement, then I programmed the Main scene, that includes the Ship and a Camera node that follows the ship, and now I want to include the Ship scene code to add instances of the Smoke scene. Problem is that Godot cannot recognize add_child(SmokeParticle) (Parse error: identifier not found: SmokeParticle). What should I do so it could recognize a node from an external scene in my code?
Thanks in advance!