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

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
korytoombs
Newbie
Posts: 12
Joined: Mon Oct 12, 2015 5:59 am
Contact:

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

#1 Post 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??????
Last edited by korytoombs on Sat Jul 02, 2022 4:48 am, edited 1 time in total.

User avatar
zmook
Veteran
Posts: 421
Joined: Wed Aug 26, 2020 6:44 pm
Contact:

Re: Can I use images bigger than the screen?

#2 Post 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
 
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Can I use images bigger than the screen?

#3 Post 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.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
korytoombs
Newbie
Posts: 12
Joined: Mon Oct 12, 2015 5:59 am
Contact:

Re: Can I use images bigger than the screen?

#4 Post 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)

User avatar
zmook
Veteran
Posts: 421
Joined: Wed Aug 26, 2020 6:44 pm
Contact:

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

#5 Post 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.)
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot]