Hi Nicol,
I wanted Sarah to have to learn to use the Patronis spell.
So when she first uses it the time is shorter than later on.
I set up 4 variables and set the first 4 patronis spells to
the first variable that would last about 20 seconds.
the next 4 would last 40 seconds and the next 4 last 60 seconds.
After the first 12 spells, all the rest would last 80 seconds.
When you used a spell I would deduct 1 from the first variable unless it was 
0, or if it was 0 I would check the next variable.
I do not know why I did it this way but in looking at the code I realized I 
could just add a variable to count how many spells were used then vary the 
time based on that number.
 I was able to remove about 20 lines of code from each level which helps to 
make the levels load quicker.
As I re-wrote the function I did not try to track down the bug but after the 
change the bug was gone.
Phil


----- Original Message ----- 
From: "nicol" <[EMAIL PROTECTED]>
To: "Gamers Discussion list" <gamers@audyssey.org>
Sent: Thursday, September 27, 2007 3:31 PM
Subject: Re: [Audyssey] changes to the sarah game


> But can you give a description of how you fixed the bug?
> I'm glad you fixed it, but I'm just curious as to what went wrong that
> caused this problem.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Phil Vlasak
> Sent: Thursday, September 27, 2007 9:25 PM
> To: Gamers Discussion list
> Subject: Re: [Audyssey] changes to the sarah game
>
> Hi Nicol,
> Yes I found that bug and fixed it.
> Phil
>
> ----- Original Message -----
> From: "nicol" <[EMAIL PROTECTED]>
> To: "gamers" <Gamers@audyssey.org>
> Sent: Thursday, September 27, 2007 3:21 PM
> Subject: [Audyssey] changes to the sarah game
>
>
>> HI phil
>> Could you find the problem that I'm having that when sarah has 4
>> patronous
>> charms left, she can't use them?
>> This can't be because peeves steals my wand because it doesn't happen 
>> with
>> the other spells, only with the patronous charms. If my wand is nicked,
>> then
>> no spells would have worked, isn't it?
>> How did you fix it if you came across the problem?
>> If you couldn't find such a bug, what is wrong on my side.
>> I'm using a 1.7 gikg processor, windows xp sp2 and a 80 gb hard drive.
>>
>>
>> ---
>> Gamers mailing list __ Gamers@audyssey.org
>> If you want to leave the list, send E-mail to
>> [EMAIL PROTECTED]
>> You can make changes or update your subscription via the web, at
>> http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
>> All messages are archived and can be searched and read at
>> http://www.mail-archive.com/[EMAIL PROTECTED]
>> If you have any questions or concerns regarding the management of the
>> list,
>> please send E-mail to [EMAIL PROTECTED]
>
>
> ---
> Gamers mailing list __ Gamers@audyssey.org
> If you want to leave the list, send E-mail to
> [EMAIL PROTECTED]
> You can make changes or update your subscription via the web, at
> http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
> All messages are archived and can be searched and read at
> http://www.mail-archive.com/[EMAIL PROTECTED]
> If you have any questions or concerns regarding the management of the 
> list,
> please send E-mail to [EMAIL PROTECTED]
>
>
> ---
> Gamers mailing list __ Gamers@audyssey.org
> If you want to leave the list, send E-mail to 
> [EMAIL PROTECTED]
> You can make changes or update your subscription via the web, at
> http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
> All messages are archived and can be searched and read at
> http://www.mail-archive.com/[EMAIL PROTECTED]
> If you have any questions or concerns regarding the management of the 
> list,
> please send E-mail to [EMAIL PROTECTED] 


---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to [EMAIL PROTECTED]
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[EMAIL PROTECTED]
If you have any questions or concerns regarding the management of the list,
please send E-mail to [EMAIL PROTECTED]

Reply via email to