0 votes

I have a patch 9 frame with and area2d node down the left hand side of the patch 9 frame. I need this to change size with the patch9frame, but I can't figure out how to do it as there doesn't seem to be any way of pinning it to the patch9frame margin, any ideas on how I could go about this?


in Engine by (290 points)

1 Answer

0 votes
Best answer

You can use resized signal of your Patch9Frame node to track the changes and resize the collision shape of your Area2D accordingly.

NOTE: Just in case you didn't know, you should not resize Area2D directly, instead you should change the extends of your CollisionShape2D.

by (170 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.