Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: moxiemason on Sat 03/02/2018 14:44:49

Title: Working script now broken? Buffer Exceeded
Post by: moxiemason on Sat 03/02/2018 14:44:49
Howdy all!

I had a working script in my function room_FirstLoad() and then all of a sudden it's decided not to work! And I can't for the life of me figure out why. It's for a traffic light to animate between red and green light.

Code (ags) Select
function room_FirstLoad()
{
oTrafficLight.SetView(7);
oTrafficLight.Animate(1, 0, eRepeat, eNoBlock);
player.Walk(12, 145, eBlock, eAnywhere);
player.FaceDirection(eDirectionRight, eBlock);
player.Say("Okay. I need to get today's newspaper, some milk and some chocolates for Maggie.");
}


Any help would be greatly appreciated.

EDIT: Blegh! Turns out I missed a few semicolons and a parenthesis in the above scripting. CRISIS AVERTED!
Title: Re: Working script now broken? Buffer Exceeded
Post by: moxiemason on Sat 03/02/2018 14:47:17
Blegh! Turns out I missed a few semicolons and a parenthesis in the above scripting. CRISIS AVERTED!