Custom Ship with drag and drop objects

Hello!

I would like to add some customization in a space shooter I am making, and want to add a factory where you can drag and drop pre-made parts to create a fully customizable ship, like kerbal space program, or kinetic void. I would like these parts to snap together when you click and drag them near other parts sockets, and also I would like the players to be able to save their ship and edit it later. Any ideas? Blueprint please. thanks in advance.

You probably won’t get a straightforward answer for this. Something like this will probably require a significant amount of design work just to decide on the fundamental systems that drive everything. Only then can you start to think about actually scripting it.

At the highest level, I would use UMG/Widgets to make icons for the components. When the icon gets dragged, it stores some kind info in a variable, and as it passes out of the HUD and into the world, it spawns an actor based on that variable, who’s location is then updated every tick and somehow derived from the 2D screen coordinates of the mouse.

I would then have sockets on each piece of the ship where other pieces can attach to. Each socket would have trigger volumes over them. As they overlap the trigger volumes, they then snap to the sockets, assuming they meet certain criteria, which you would have to define.

As they snap to sockets. you can then maybe make each actor a child actor of the actor they’re attaching to, or you can use static meshes and add them as mesh components to the original actor.

Pixel is correct and not sure if this will help, but [(39) Rama’s Extra Blueprint Nodes for You as a Plugin, No C++ Required!][1] I believe in [Post 39][2] may have something that snaps, I have not read it in depth but may assist or guide you in the right direction.

(39) 's Extra Blueprint Nodes for You as a Plugin, No C++ Required! - Blueprint - Epic Developer Community Forums!
[2]: (39) 's Extra Blueprint Nodes for You as a Plugin, No C++ Required! - Blueprint - Epic Developer Community Forums

Thank you very much, this is helping me a lot!

Thanks, I will definitely find some use for these extra nodes!