ATL on text with a frame/border? [solved]

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
Belgerum
Regular
Posts: 110
Joined: Thu Nov 06, 2014 12:24 am
Skype: belgerum09
Soundcloud: Belgerum
itch: Belgerum
Contact:

ATL on text with a frame/border? [solved]

#1 Post by Belgerum »

Is there an easy way to have a stretchable frame or border around text moving in ATL?

I'm looking for a small notification like those in the game "Long Live The Queen" that look like this: http://www.dadsgamingaddiction.com/wp-c ... -46-42.jpg

In the game, the text bubbles fade in and fade out, while moving upwards the entire time.

I want to make a similar effect, and I can use the below ATL code to do so, but there seems to be no way I find I can wrap a frame, border, or outline around the text, to make it stand out from the background, while still making it move like such, and not adding the same effect to all of the text in the game. =/

Code: Select all

show text "{b}Displayed Text{/b}":
    alpha 1.0 xalign 0.5 yalign 0.5
    linear 1.5 yalign 0.0 alpha -1.0
Last edited by Belgerum on Tue Feb 02, 2016 2:20 am, edited 2 times in total.

User avatar
namastaii
Eileen-Class Veteran
Posts: 1350
Joined: Mon Feb 02, 2015 8:35 pm
Projects: Template Maker for Ren'Py, What Life
Github: lunalucid
Skype: Discord: lunalucid#1991
Soundcloud: LunaLucidMusic
itch: lunalucid
Location: USA
Contact:

Re: ATL on text with a frame/border?

#2 Post by namastaii »

Could you achieve the same thing using a textbutton? Or imagebutton? Just change that text into a button

User avatar
Belgerum
Regular
Posts: 110
Joined: Thu Nov 06, 2014 12:24 am
Skype: belgerum09
Soundcloud: Belgerum
itch: Belgerum
Contact:

Re: ATL on text with a frame/border?

#3 Post by Belgerum »

As much as I'm not sure why I had to resort to it, making a textbutton with no function fixes my problems. Huh.

User avatar
namastaii
Eileen-Class Veteran
Posts: 1350
Joined: Mon Feb 02, 2015 8:35 pm
Projects: Template Maker for Ren'Py, What Life
Github: lunalucid
Skype: Discord: lunalucid#1991
Soundcloud: LunaLucidMusic
itch: lunalucid
Location: USA
Contact:

Re: ATL on text with a frame/border?

#4 Post by namastaii »

Haha XD

philat
Eileen-Class Veteran
Posts: 1910
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: ATL on text with a frame/border? [solved]

#5 Post by philat »

I don't know exactly what you're doing with the button, so if you have a working solution, there's probably no need to bother changing it, but why wouldn't you just use a frame like you asked?

Code: Select all

transform fadeup:
    alpha 1.0 xalign 0.5 yalign 0.5
    linear 1.5 yalign 0.0 alpha -1.0

screen popup(text):
    frame:
        #specify the properties of the frame, like background, size, etc.
        at fadeup
        text text
    timer 1.5 action Hide("popup")

label start:
    e "You've created a new Ren'Py game."
    show screen popup("Displayed Text")
    e "Once you add a story, pictures, and music, you can release it to the world!"

Post Reply

Who is online

Users browsing this forum: voluorem