Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: JD on Mon 19/01/2004 22:16:40

Title: GUI Problem/Bug ?
Post by: JD on Mon 19/01/2004 22:16:40
Hello,

I'm using a lucasarts style GUI (actions and inventory on
a gui which is displayed at all times) and I've encountered
some problems. Whenever I try to scroll the inventory while
the character is walking it gives me this error:

---------------------------
Adventure Game Studio
---------------------------
An error has occured. Please contact the game author for support, as this
problem is caused by the game rather than the interpreter.
(ACI version 2.60.693)

(Global script line 272)
Error: SetCharacterSpeed: cannot change speed while walking

---------------------------
OK  
---------------------------

So I checked my global script at line 272 and yeah, this is there:
SetCharacterSpeed(EGO,(GetSliderValue(5,1)));

But it's on a completely different GUI! How can this be? When I disable
the line (ie. make it a comment with // ) it works fine. Any ideas?

Thanks in advance
Title: Re:GUI Problem/Bug ?
Post by: Gilbert on Tue 20/01/2004 01:43:13
Maybe it's a {} or if nested problem that somehow get the line executed with other GUI, can you post the GUI script here?
Title: Re:GUI Problem/Bug ?
Post by: Scorpiorus on Tue 20/01/2004 09:07:54
Also, check the GUI#5 What is it there?
Title: Re:GUI Problem/Bug ?
Post by: SSH on Tue 20/01/2004 13:05:38
Try putting

if (player.walking==0)

in front of the problem line?

Also, are you SURE that that code isn't in repeatedly_execute?