Flying textbox

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
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Flying textbox

#1 Post by isobellesophia »

Hellow

I would like to ask if it is possible to make the textbox fly around in the game?

And also, the dialogue will be still inside the textbox, with them.
Making the textbox fly crazily until it stops in a exact normal dialogue.

Is it possible?

Thanks.
I am a friendly user, please respect and have a good day.


Image

Image


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: Flying textbox

#2 Post by namastaii »

No.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1460
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Re: Flying textbox

#3 Post by xavimat »

You can apply transforms with "at" to the window in the "screen say" in screens.rpy.

For example:

Code: Select all

transform fly:
    yoffset 0 xoffset 800
    block:
        parallel:
            easein 1.0 yoffset -500
        parallel:
            easeout 1.0 xoffset 400
    block:
        parallel:
            easeout 1.0 yoffset 0
        parallel:
            easein 1.0 xoffset 0
            

screen say(who, what):
    style_prefix "say"

    window at fly:   # <-- ADD HERE "at fly"
        #  ... HERE CONTINUES THE SCREEN
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

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

Re: Flying textbox

#4 Post by Imperf3kt »

namastaii wrote: Sun Sep 15, 2019 9:12 amNo.
The text box is only part of a screen like anything else, it can be animated the same as everything else, using the same methods as everything else.

Failing that, one can always fake it, use an image that looks like the text box, and animate that.
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
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Flying textbox

#5 Post by isobellesophia »

Thanks xavimat! It works! Looks kinda funny though. :)
I am a friendly user, please respect and have a good day.


Image

Image


Post Reply

Who is online

Users browsing this forum: No registered users