#Object is not directly collectible

9 messages · Page 1 of 1 (latest)

gentle anvil
#

I'm working on a simple catch game but have the problem that I can only pick up the object (apple) after another one has spawned. Thanks in advance ^^

pastel robin
#

Could you show the remote tree view when the game is running? It might be adding an apple as a child of another apple.
Not sure if you should add a child as a child of itself if that makes sense.

gentle anvil
#

But it's not a big problem because it will be collectible if the player can reach it. Now the only problem I have is that if I add a Rigidbody2D to the apple, it teleports with every newly spawned apple. (A new position is always added to the apple because of the randf_range, but this is not the case with the current apples that do not have a rigid body.

gentle anvil
#

Okay so i started up the project again and for some reason it works now xD I dont knwo what i changed but it workes now as intended

pastel robin
#

Glad you solved it!

gentle anvil
# pastel robin Glad you solved it!

Yeah, but now I'm having trouble adding gravity to the apples. I don't really know how to do that, so it just doesn't work with rigidbody2d because for some reason it is teleported to a new location in the randf_range every time a new apple spawns.

pastel robin
gentle anvil
#

i tried that but its saying that velocity is not declared in the current scope.