How to script click and drag puzzle pieces into place?

Started by RedBlob, Sat 14/02/2009 16:56:24

Previous topic - Next topic

RedBlob

Anyone have an idea how I might add a jigsaw puzzle minigame to a game? I want to be able to drag pieces around while the mouse button is pressed, and release them when the button is released, so a player can assemble a puzzle. When the piece is in the correct place, I need it to stay stuck.

I need it in dummies terms, since I'm not the best scripter...  ::)

This was covered in a previous thread, but the code and demo don't work in the new AGS. Here's the link to the older thread:

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=9963.0

Dualnames

Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)


Dualnames

Which is out of luck, because it was on the first page for a really long time 8)

You'd be surprised that a lot of stuff can be found in that part of the forums, and with very very few not working links.

Cheers. 8)
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

SMF spam blocked by CleanTalk