Page 1 of 1

[Solved]Can I use images bigger than the screen?

Posted: Fri Jul 01, 2022 10:18 am
by korytoombs
I'm making a credits page using Gimp. (This is not a text based credits, so the tutorial on that doesn't help.)
The image will be 1920 x 5000 or whatever big number I want.

The idea is to place the image on the screen and make the engine move the image.

Is this even possible? I tried doing it like when I move a character, but it doesn't do anything.

My code so far is something like this =

Code: Select all

    window hide
    $ quick_menu = False
                  
    show credits:
       xalign 0
       yalign 0
    with fd

    pause 10


After this I tried to make the screen move = nothing.
I changed the initial values up here to 1000 each, it just stays the in the same place.
I'm guessing this isn't possible at the junction??????

Re: Can I use images bigger than the screen?

Posted: Fri Jul 01, 2022 1:12 pm
by zmook
korytoombs wrote:
Fri Jul 01, 2022 10:18 am
The idea is to place the image on the screen and make the engine move the image.
You want to do something like:

Code: Select all

    show credits:
       xalign 0
       yalign 0.0			# start showing the top of the image
       linear 10 yalign 1.0	# animate a pan down to the bottom
 

Re: Can I use images bigger than the screen?

Posted: Fri Jul 01, 2022 6:33 pm
by Imperf3kt
You can, just keep in mind that the image will need to load into RAM, the bigger the image, the longer it will take to load, the more RAM it will require and the more processing power it will take to animate its movement.

Re: Can I use images bigger than the screen?

Posted: Sat Jul 02, 2022 4:44 am
by korytoombs
Thanks for all your help. This works very well now.

Code: Select all

label gotocredits:
        
        window hide
        $ quick_menu = False
               
        pause 1
                 
    show credits:
       xalign 0
       yalign 0
    with ds
    
    pause 1
    
    show credits:
        linear 50 yalign 1.0
    
     $ renpy.pause (60, hard = True)

Re: [Solved]Can I use images bigger than the screen?

Posted: Sat Jul 02, 2022 7:22 am
by zmook
FWIW, a 60-second hard pause is probably not going to force people to watch your credits, it’s just going to make them think the game has hung and quit instead.

(As a player, I hate hard pauses so much.)