Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(4 edits)

Not sure where is best to contact you. The code runs through with no errors, but never actually spawns anything into the game world. 

I can spawn items from my loot chest no problem with the same scene I use in your DropsComponent.

when I call the " drops_component.spawn_drops(1.0) "

nothin is spawned into the world. Any help would be great thanks.

The spawn point when the code is run shows the correct spawn location as well

drops_to_spawn in the DropsComponent also shows the correct packedscene

However, after the code is run and checking the child count in the PickupsGroupNode, it is still 0

Any help here would be spectacular thanks.

So I tracked down the issue. As the only spawner that now works appears to be the spawn_scene_at_point

That chunk was however missing the add_child(instance)
just added that and it works great.

In process of a move at the moment but if you ping me on https://discord.com/invite/vxMuaeZd I can help out if you run into any other issues next week

Appreciate that thanks. I got it all sorted with the parent call and all as well. My smooth brain sometimes needs a little longer than some to wrap my head around some one elses' code lol

spawn_parent.call_deferred("add_child", instance)

Again appreciate the response.