Is there a way to get one Sprite to stick to another and then un-stick? I'm making a Dress Up the LGM (Little Green Man from the TS movies) game. When you hit clear in the game "The Claw" comes down and picks him up. the idea is that the clothes and items will move with him and then come back down after he is off the screen and then he comes back.
Offline
Make a "Sticky" variable.
If sticky = 1
stick
else
not stick
end
Offline
You could do this for the clothes:
Repeat until<y position of LGM = (insert whatever number you want)>
[Go to x:x position of LGM+(correct position number)y:y position of LGM+(correct position number)]
end repeat
[Go to x:(correct x position)y:(correct y position)]
Offline
Well, for a dress-up game, what you probably want is something like this:
When green flag clicked
forever
if <touching person>
set offsetx to (x position of person - x position)
set offsety to (y position of person - y position)
forever
go to x (x position of person + offsetx) y (y position of person + offsety)
end forever
end if
end forever
Offline