Sliding Text?

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
CellHG
Regular
Posts: 61
Joined: Fri May 05, 2017 3:01 pm
Contact:

Sliding Text?

#1 Post by CellHG »

Is their a way to get some text sliding/scroll across the bottom of my main menu? like what news channels have with the top stories sliding across?

User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: Sliding Text?

#2 Post by Scribbles »

yes, with ATL/transform language I believe. can you be more specific as to what you're wanting it to say/look like?
Image - Image -Image

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

Re: Sliding Text?

#3 Post by Imperf3kt »

Sounds like you want a 'tickertape'
As Scribbles notes, you can do this using ATL. But exactly how you implement it depends on what you're after.
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

CellHG
Regular
Posts: 61
Joined: Fri May 05, 2017 3:01 pm
Contact:

Re: Sliding Text?

#4 Post by CellHG »

I basically just want people who are backing the game's name to scroll across the bottom with a slightly dark transparent background.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Sliding Text?

#5 Post by xela »

Try something along the lines of:

Code: Select all

default patrons = range(100)

transform my_scroll():
    subpixel True
    xpan -180
    linear 60.0 xpan 180
    repeat
    
screen patrons():
    frame:
        background Frame(Solid("#00000011"))
        yalign .9
        at my_scroll()
        has hbox spacing 5
        for p in patrons:
            text str(p) yalign .5
    
label start:
    call screen patrons
    "All Done!"
Replacing:

Code: Select all

default patrons = range(100)
with a list of your supporters:

Code: Select all

default patrons = ["Jake", "Funny Guy"]
and etc.

You can just add:

Code: Select all

use patrons
to the main_menu screen instead of calling.

This also assumes at least one full screen of supporters, otherwise you can just repeat names a couple of times.
Like what we're doing? Support us at:
Image

Post Reply

Who is online

Users browsing this forum: Bing [Bot], bonnie_641