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: 759
Joined: Mon Jan 07, 2019 2:55 am
Projects: Maddox's Everyday Talk! (13+ Unreal version), Maddox Everyday Talk! (3+ Real-Friendly version)(Upcoming 2020)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: .......
Location: Philippines, Mindanao
Contact:

Flying textbox

#1 Post by isobellesophia » Sun Sep 15, 2019 6:40 am

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


Working on a talking simulation game for everyone, except children.

Maddox Everyday Talk!
Is my very very main project, not contain 13 below.

Main project here viewtopic.php?f=43&t=56564
Image

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

Re: Flying textbox

#2 Post by namastaii » Sun Sep 15, 2019 9:12 am

No.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1433
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: xavimat
Location: Italy
Contact:

Re: Flying textbox

#3 Post by xavimat » Sun Sep 15, 2019 5:36 pm

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!
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

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

Re: Flying textbox

#4 Post by Imperf3kt » Sun Sep 15, 2019 5:54 pm

namastaii wrote:
Sun Sep 15, 2019 9:12 am
No.
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.

Twitter

User avatar
isobellesophia
Miko-Class Veteran
Posts: 759
Joined: Mon Jan 07, 2019 2:55 am
Projects: Maddox's Everyday Talk! (13+ Unreal version), Maddox Everyday Talk! (3+ Real-Friendly version)(Upcoming 2020)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: .......
Location: Philippines, Mindanao
Contact:

Re: Flying textbox

#5 Post by isobellesophia » Mon Sep 16, 2019 8:03 am

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


Working on a talking simulation game for everyone, except children.

Maddox Everyday Talk!
Is my very very main project, not contain 13 below.

Main project here viewtopic.php?f=43&t=56564
Image

Post Reply

Who is online

Users browsing this forum: Gedeon, Google [Bot]