Cut scene technique

Started by Da_Elf, Wed 14/03/2007 22:06:20

Previous topic - Next topic

Da_Elf

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?

Khris

You don't need a dot, use a transparent character instead.
To scroll the screen, look up SetViewport().

Da_Elf

ah sweet. thats perfect
Code: ags
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

SMF spam blocked by CleanTalk