Jump to content
MakeWebGames

Recommended Posts

Posted

I think a drag & drop is what I'm looking for. I'm fairly inexperienced when it comes to js. 

 

I want something that will allow me to have a background image and players be able to drop in "items" and the script save the location so next time they view the page it looks just like the last time they left.

  • 2 years later...
Posted

The persistence part is what would decide it for me, rather than the drag interaction itself. Draggable handles the movement, but you'd still need to capture each item's position and save that server-side, then rebuild the layout on load. I'm putting together something similar for a small map-style interface and I'm unsure whether to store coordinates in a database row per item or just keep one JSON blob per user. I came across Compare AI App Builders Side by Side https://aibuildercompare.com/compare while weighing whether a visual builder saves time here. Has anyone handled restoring positions reliably?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...