Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | takje |
I’m using an Area2D in combination with a collisionShape2D to create an area in my platformer that triggers interactions (e.g. text bubbels).
I don’t want to duplicate it each time so I included this in a scene. The problem is that the collision shape is not the root node of that scene and therefore I cannot change it from the scene where this is linked
SceneA
–Area2D
----CollisionShape2D
SceneB
–SceneA
Is there a way to change the collisionShape2D for each instance of scene A from scene B? I can select editable children but this changes that shape for each instance of sceneA in the same way.
What is driving the need to change the collision shape and who/what has access to that information?
jgodfrey | 2020-11-23 02:34
@jgodfrey For each trigger I would like to have a different collision box. In some places that means a small square while in other locations this means a large rectangle.
It would look like this:
SceneB
--SceneA-instance1 -> small square collision box
--SceneA-instance2 -> large rectangle collision box
--SceneA-instance3 -> circular collision box
takje | 2020-11-25 17:06