Page 1 of 1

Trying to create an Animated Actors behind the scenes section for my game.

Posted: Mon Jan 06, 2020 12:58 pm
by arlj11
I want to create an Animated Actors behind the scenes section for my game called "Inside the Character Studio" ICS for short. It is meant to be a funny side story with the charaters talking about the scenes like they are actors playing parts. The episodes unlock after the player have seen certain scenes in that episode.

I used the Side Story or Sub story are unlocked when ONE or TWO MORE endings are completed. - isobellesophia from the cookbook section to build it.

The problem I am having is getting it to return to the ICS Menu after the episode plays. The return function starts the game and everything else I try kicks out an error.

Thank you in advance.

Re: Trying to create an Animated Actors behind the scenes section for my game.

Posted: Tue Jan 07, 2020 7:37 am
by isobellesophia
Hello! Can you exactly show the code for that? I am the creator of that code you've been looking into.

And plus, or maybe showing the ICS menu you've been talking about

And what is the error showing?

Re: Trying to create an Animated Actors behind the scenes section for my game.

Posted: Tue Jan 07, 2020 12:15 pm
by arlj11
Here is the code for the Menu and the intro. With the return it give no error it just starts the game. I would like it to go back to the ICS Menu after playing the episodes.

Code: Select all

### SCENE GALLERY! ##########################################
screen ICS():
    tag menu
    use extras_menu("Inside the Character Studio"):
        grid 1 3:
            style_prefix "gslot"
            xalign 0.5
            yalign 0.5
            spacing gui.slot_spacing
            ## scene 1
            if persistent.credits_seen:
                textbutton "Introduction" action Jump("ICSIntro")
            else:
                text "The episode is not unlocked yet."

            if persistent.IntroWatched:
                textbutton "Main Menu" action Jump("ICSMainMenu")
            else:
                text "The episode is not unlocked yet."

            null

label ICSIntro:
    scene ICS
    Ka "Welcome to Inside The Character Studio."
    Ka "Here we will be giving you a behind the scenes look at what it took to make 4 Wins possible."
    Ka "We hope you enjoy."
    $ persistent.IntroWatched = True
    return

Re: Trying to create an Animated Actors behind the scenes section for my game.

Posted: Wed Jan 08, 2020 6:45 am
by isobellesophia
How about this.. replace the return into this instead.

Code: Select all

$ renpy.end_replay()
If not, then replace the Jump action into Replay..

Re: Trying to create an Animated Actors behind the scenes section for my game.

Posted: Wed Jan 08, 2020 12:13 pm
by arlj11
That did the trick. I had to also replace the Jump() with Replay() so Ren'Py would see the end_replay.

Thank you for your help.

Re: Trying to create an Animated Actors behind the scenes section for my game.

Posted: Thu Jan 09, 2020 2:50 pm
by arlj11
Olay. Now I have a new problem.

Somehow the when the episodes are unlocked, the button is grayed out and unclickable. I deleted all the Persistent data to reset it and check it out.

But the player needs to play the Introduction to start unlocking all the other episodes, and the Introduction button is grayed out and unclickable.

Made no changes to any of the screens.

Re: Trying to create an Animated Actors behind the scenes section for my game.

Posted: Thu Jan 09, 2020 11:13 pm
by arlj11
I just realized what's happening.

The Replay() function only works when the label has been viewed at least once. Since these labels will never be seen in the main game, Replay won't work.

So I have to use the Jump() function. Which leaves me back at square one.

I wonder if this should be brought up to the devs as a bug?

Re: Trying to create an Animated Actors behind the scenes section for my game.

Posted: Fri Jan 10, 2020 5:53 pm
by PyTom
It's not a bug. Replay takes a locked= argument that determines if the Replay is locked or not. You could give it locked=False if you want it to always be unlocked.

Re: Trying to create an Animated Actors behind the scenes section for my game.

Posted: Sat Jan 11, 2020 3:04 pm
by arlj11
That did the trick. It works now.

Thank you.