Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - julesmig

#1
Beginners' Technical Questions / Re: Slideshow
Fri 23/04/2021 01:04:49
Quote from: Khris on Wed 21/04/2021 21:43:12
In room_Load():
Code: ags
  SetBackgroundFrame(0);
  SetTimer(1, 5 * GetGameSpeed());  // 5 seconds


In room_RepExec():
Code: ags
  if (IsTimerExpired(1)) {
    int cf = GetBackgroundFrame();
    if (cf < 4) {
      SetBackgroundFrame(cf + 1);
      SetTimer(1, 5 * GetGameSpeed());
    }
    else player.ChangeRoom(2);
  }


Hello Khris, thanks for the assistance!

It kind of works, but at the end of the animation I get the error "SetBackgroundFrame: invalid frame number specified" on line "SetBackgroundFrame(cf + 1);" . What could this mean?
#2
Beginners' Technical Questions / Slideshow
Wed 21/04/2021 21:34:56
Hello everyone!

I'm making my first game ever, and want to start the game with a image sequence full s as cutscene, like a slideshow. There's no need for control as "back" or "next", I just want to automatically show the images and then move to a room.

I thought of animating backgrounds, but I don't know to tell AGS not to repeat the animated background loop and after X seconds move to a different room. Is there a way to do this?
SMF spam blocked by CleanTalk