Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+2)

There's a module in the Decker examples folder that can help with this. If you look in draggable.deck in the examples folder, it explains a lot about how draggable canvases work, and it's got a module called rect that has a lot of features for checking things like overlaps built in. It might require both widgets to be "canvas" format though, I am not sure.

But basically, if you look in the example deck it should explain things. I think for what you want to do the following code added to the draggable canvas should work

on release do
 if rect.overlaps[bill hand]
  go["card56"]
 end
end

This will need you to add the "rect" module to your deck first, so that you have the rect.overlaps function.

If I'm off base with what you're trying to do or if you have any issues let me know and we can figure it out.

Either i'm dumb but even with the rect module it won't work.

(+1)

Hmm - any chance you can upload a deck I can have a look at somewhere so I can see what you've done? (obviously you probably don't necessarily want to share what you're working on yet but if you try it in a fresh deck I can take a look)