Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: MoonDog on Wed 12/08/2015 10:19:27

Title: Jigsaw module help [solved]
Post by: MoonDog on Wed 12/08/2015 10:19:27
So I sort of have the jigsaw module working now. Using it to create a "piece together torn paper" puzzle. But I ran into three problems.

1) sound doesn't play because when I try run the game an error pops up saying "Undefined token, 'PlaySound'" on every line that has PlaySound in it.

2)when I'm playing the game I have to click on the screen a few times before the pieces of paper show.

3)how to I end the jigsaw puzzle so that I can interact with hotspots/objects/characters again.

These might be obvious fix but I'm probably just not seeing it.
Title: Re: Jigsaw module help
Post by: Crimson Wizard on Wed 12/08/2015 10:24:03
Quote from: MoonDog on Wed 12/08/2015 10:19:27
1) sound doesn't play because when I try run the game an error pops up saying "Undefined token, 'PlaySound'" on every line that has PlaySound in it.
The module uses old script commands that were deprecated since AGS 3.2.
Easiest solution is to open General Settings and disable "Backwards Compatibility -> Enforce new style audio scripting".
Title: Re: Jigsaw module help
Post by: MoonDog on Wed 12/08/2015 15:59:37
will try that later tonight. hope it works out.
Title: Re: Jigsaw module help
Post by: MoonDog on Thu 13/08/2015 14:28:53
Quote from: Crimson Wizard on Wed 12/08/2015 10:24:03
Quote from: MoonDog on Wed 12/08/2015 10:19:27
1) sound doesn't play because when I try run the game an error pops up saying "Undefined token, 'PlaySound'" on every line that has PlaySound in it.
The module uses old script commands that were deprecated since AGS 3.2.
Easiest solution is to open General Settings and disable "Backwards Compatibility -> Enforce new style audio scripting".

Thank you, sound works now. Now to figure out the other two.
Title: Re: Jigsaw module help
Post by: MoonDog on Thu 13/08/2015 15:12:15
Ok, so I managed to remove the puzzle with the Jigsaw.RemovePuzzle() command and a change to previous room after it. Only problem now is that my objects like doors, keys and painting have all disappeared.
Title: Re: Jigsaw module help
Post by: MoonDog on Thu 13/08/2015 23:04:02
Managed to solve the lost two issues after a bunch of trial and error. Everything is finally working :-D