- Edited
I am struggling with the first chapter of Godot Engine Game Development Projects by Pakt. In it, I am creating a function to instance and randomize coin locations . I am using 3.5.2.
When I run the game, the coins just generate at the origin and do not interact with the player.
I've included the script for Main and the screenshots of the editor that I have redone over and over. It still does not work. If I remove the spawn_coins function. The coins do not appear in the scene when it is played. When the func is there, the coin seems to be instantiated at (0,0) but does not interact with the other objects in the scene.