CollisionShape that shapes with an Area2D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By takje

I’m trying to define a generic interaction shape in my 2D platformer. When the player moves through this area, I throw a popup.

I made a new scene with an Area2D and a CollisionShape2D under it. There is a script under the Area2D for the popup.

I now want to duplicate this code. Therefore I made this into a separate scene that I load whenever I need it (containing the area, collision and script).

Unfortunately even with editable children, I can only change the collision box for all the instances of the collisionbox. How can I define a different size collisionbox for each of these instances?

I can’t delete this question but it is a duplicate of Change collision shape from outside scene - Archive - Godot Forum

takje | 2020-11-21 18:37

:bust_in_silhouette: Reply From: magicalogic

Try right-clicking on the scene on the scene tab and and click Make Local on the menu.

@_magicalogic, thank you for your answer. This seems to do something similar to editable children but they still share the same collision box.

Also, this is actually a duplicate of Change collision shape from outside scene - Archive - Godot Forum so it would be better if we could continue the discussion there.

takje | 2020-11-25 17:11