Also, how can I implement a "whitelist" for the "Overlaps", that draws off a canvases' name/textual content?
Hi! This isn't an answer yet, just some clarifying questions:
Are you working on using the "Make Magnet" example to make magnets that are created with scripts in them that use things like rect.overlaps and rect.constrain from the same example deck?
And did you want to make it so that only some of them do something when they're overlapping, and others don't? (based on some condition, or your mention of a whitelist).
Actually if you could give a specific description of what you're trying to do then I think we could help make sure you have all of the pieces of it that you need.
Yes, the example contraption, and I more specifically want to apply a general script to all of the canvases made with it to make them work with the Overlaps mechanic. It's the mechanic with a script applied to a draggable canvas -
on release do
if rect.overlaps[me target]
alert["You hit the target!"]
end
end
It would then execute an action if placed on the specifically named widget.
To make a project as a beginner, I'd just like to collate different contraptions to make games and potentially study the code and provided documentation.