Dragging 2 objects together
Posted: Tue Oct 13, 2020 11:02 pm
Hello!
I just started messing around today and I'm having a lot of fun. I'm making a puzzle game
Here is a screenshot
imgur[dot]com/IXoUCac
Each of the objects can be dragged around using
That works fine. So, in this puzzle, the answer is Radboud. I have created a rectangle that, if clicked, takes the player to the correct card.
What I want is for the rectangle to drag along with the Painting Registry object. So that you can drag the Painting Registry around, and still if you click Radboud, it works. Does that make sense?
My first guess was to do
but that didn't work. Any suggestions? Thank you!
I just started messing around today and I'm having a lot of fun. I'm making a puzzle game
Here is a screenshot
imgur[dot]com/IXoUCac
Each of the objects can be dragged around using
Code: Select all
on mousedown
grab me
end mousedown
What I want is for the rectangle to drag along with the Painting Registry object. So that you can drag the Painting Registry around, and still if you click Radboud, it works. Does that make sense?
My first guess was to do
Code: Select all
on mousedown
grab me
grab rectangle "correctanswer"
end mousedown