For a side scroller game i need variuous scene ( main , player , weapon, enemy ).
In the script of the main one, I instance them with "add_child" and they spawn correctly on the screen with their variables.
Now i want to add collision to player, bullet and enemy that are all RigidBody2D with their CollisionShape2D.
This is the code for the Enemy
var life = 250
In the weapon scene there is a group called weapon
What is the problem?