Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SinSin on Wed 16/05/2007 23:31:47

Title: Movie Problems
Post by: SinSin on Wed 16/05/2007 23:31:47
Can someone show me where I went wrong here I went thru the manual and it said to do this ?

3          #sectionstart game_start  // DO NOT EDIT OR REMOVE THIS LINE
4             function game_start
5            PlayVideo (wwot2.avi,1,1);
6             // called when the game starts, before the first room is loaded
7            }
8           #sectionend game_start  // DO NOT EDIT OR REMOVE THIS LINE

But it wont work it says
Error (line 4) expected ',' or ';' not PlayVideo
Have i missed something ??
Cheers
Sin

PS wwot2.avi is in the compiled folder and i know that its spelt correctly
Title: Re: Movie Problems
Post by: LimpingFish on Wed 16/05/2007 23:34:12
I'm not 100% sure, but I don't think you can call a movie before a room loads. :-\
Title: Re: Movie Problems
Post by: Ashen on Wed 16/05/2007 23:40:06
Line 4:

function game_start


Should be:

function game_start () {


How'd you manage to delete that bit? (I'm guessing it's not just a typo here, because deleting the () { causes exactly that error.)

Oh, and you definitely can use PlayVideo in game_start.
Title: Re: Movie Problems
Post by: SinSin on Wed 16/05/2007 23:46:42
Righty o   

.
..
...
i tried it again without typos and now I'm getting
undefined symbol "wwot"

HMMM
Title: Re: Movie Problems
Post by: Ashen on Wed 16/05/2007 23:53:41
Dang, missed that bit. The video name is a String, so it has to be in quotes:

PlayVideo ("wwot2.avi",1,1);


Otherwise, it'll be looking for a String called wwot2.avi to get the name from, not a file by that name.
Title: Re: Movie Problems
Post by: SinSin on Wed 16/05/2007 23:55:58
ASHEN you Legend Thanks very much for your patience tis much appreciated

Works a treat  ;D ;D ;D


Someone give this guy a medal for flogging a dead horse

SIN ;D ;D
Title: Re: Movie Problems
Post by: LimpingFish on Thu 17/05/2007 00:06:47
Well, goes to show you what I know... :P
Title: Re: Movie Problems
Post by: SinSin on Thu 17/05/2007 00:10:31
Quote from: LimpingFish on Thu 17/05/2007 00:06:47
Well, goes to show you what I know... :P

Ahh well i would'nt worry Ashen must be sick to the back teeth of me and my questions we all learn sometime
;D ;D ;D
Sin