Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Da_Elf on Wed 14/03/2007 22:06:20

Title: Cut scene technique
Post by: Da_Elf on Wed 14/03/2007 22:06:20
If im doing a room where there is a quick cut scene and the room is a scrolling room i want the character to walk on the left side of the screen then have the scrolling room pan over to the right side and show the cut scene then pan back to the main character. what i came up with was to have a character set as a dot become the character and i move it across the screen so that the screen will pan with it. then if i want to scroll backi can move it back to the previous character location and change back to character ego and delete the dot from the screen or if i just want to cut back to ego i can just do the change and the screen will automatically jump back. is there an easier function for scrolling the screen?
Title: Re: Cut scene technique
Post by: Khris on Wed 14/03/2007 23:15:28
You don't need a dot, use a transparent character instead.
To scroll the screen, look up SetViewport().
Title: Re: Cut scene technique
Post by: Da_Elf on Wed 14/03/2007 23:31:13
ah sweet. thats perfect
int ypos = 0;
while (ypos < 60) {
  SetViewport(0, ypos);
  Wait(1);
  ypos++;
}
ReleaseViewport();


works like a charm. i couldnt find the right syntax in the help manual and couldnt find it in the wiki