0 votes

beginner here, learning the basics.
I want to have (2D) things made out of separate objects. if the thing is clicked on, it should move towards a "portal" and get cropped as soon it touches it, so it looks like its entering the portal and disappears. each of the separate objects needs to have collision, the goal is to make all objects disappear into portals without touching each other.

so I need something made of several parts, that I can move and "crop", where each part has collision. can someone point me in the right direction on what nodes to use to build that?

enter image description here

Godot version latest
in Engine by (14 points)

1 Answer

0 votes

I think you need a bunch of nodes here:

  • A kinematicbody2d to have collision detection
  • Multiple CollisionShape2Ds for each of the separate parts of the object
  • Area2Ds to detect clicks
  • Sprites to show the objects to the player
  • Something like a shader or an animationplayer to play a disappearing animation
by (7,541 points)

Agreed. This is the beauty of Godot at it's best.
If you need multiple functionality then use multiple nodes

Thank you!

I made some progress, but I can't figure out how to make the "disappearing" work. For Animationplayer, I would need some kind of property I could use to crop the sprite/collisionshape2d/area2d but I can't find any I could use.

Any tips on that?

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.