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: 43
Joined: Fri May 05, 2017 3:01 pm
Contact:

Sliding Text?

#1 Post by CellHG » Mon Sep 25, 2017 1:41 pm

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
Veteran
Posts: 428
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island
Projects: As We Know It, By Moonlight, Possessed[hiatus],
Organization: Scribble Games
Tumblr: doodlesatbreakfast
Deviantart: breakfastdoodles
itch: scribbles
Location: Georgia
Contact:

Re: Sliding Text?

#2 Post by Scribbles » Mon Sep 25, 2017 2:19 pm

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

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

Re: Sliding Text?

#3 Post by Imperf3kt » Mon Sep 25, 2017 3:55 pm

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.
Image

Warning: May contain trace amounts of gratuitous plot.

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

Re: Sliding Text?

#4 Post by CellHG » Tue Sep 26, 2017 12:08 pm

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: 2467
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Sliding Text?

#5 Post by xela » Tue Sep 26, 2017 2:37 pm

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: No registered users