Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: RedBlob on Sat 14/02/2009 16:56:24

Title: How to script click and drag puzzle pieces into place?
Post by: RedBlob on Sat 14/02/2009 16:56:24
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
Title: Re: How to script click and drag puzzle pieces into place?
Post by: Dualnames on Sat 14/02/2009 16:59:19
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=35020.0

Tht might be of some help..
Title: Re: How to script click and drag puzzle pieces into place?
Post by: RedBlob on Sat 14/02/2009 17:03:13
Quote from: Dualnames on Sat 14/02/2009 16:59:19
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=35020.0

Tht might be of some help..

Thank's so much -- I missed that thread.
Title: Re: How to script click and drag puzzle pieces into place?
Post by: Dualnames on Sat 14/02/2009 17:06:31
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)