Animating the textbox [ 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
gensuta
Newbie
Posts: 19
Joined: Sun Apr 17, 2016 2:31 am
Completed: Green Hero, Solar Sprout, Saturday Fright, I Dream of OCs, Rendezvous
Projects: Skate & Date, Blastagirl, Iris, A Slow Ride
Tumblr: gensuta
Deviantart: gensuta
Github: gensuta
Soundcloud: gensuta
itch: gensuta
Contact:

Animating the textbox [ SOLVED]

#1 Post by gensuta » Mon Jan 02, 2017 4:22 pm

Ok so I'm trying to make the textbox like a speech bubble, but I'm not quite sure how I'd go about doing it?
And with each character I want to change the speech bubble to a different color as well so I tried using this approach to animate it

Code: Select all

define k = Character('Kaede', 
    color="#c8ffc8",
    image="kaede", 
    window_background =
        "gui/KL_1.png"
        pause 1.0
        "gui/KL_2.png"
        pause 1.0
        repeat
        )
But this happened

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 28: invalid syntax
            pause 1.0
                 ^
    

Ren'Py Version: Ren'Py 6.99.12.1.2012
I left the textbox code alone in the screens.rpy tab but I'm not sure how I'd animate it there either :/


Thanks in advance to whoever can help ;-;
Last edited by gensuta on Tue Jan 03, 2017 12:05 am, edited 1 time in total.

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: Animating the textbox

#2 Post by Divona » Mon Jan 02, 2017 11:38 pm

"window_background" doesn't take transform right where it is. I suggest you define the image properly with transform first.

Code: Select all

image kaede_window_background:
    "gui/KL_1.png"
    pause 1.0
    "gui/KL_2.png"
    pause 1.0
    repeat

define k = Character('Kaede', 
    color="#c8ffc8",
    image="kaede", 
    window_background = "kaede_window_background")
Completed:
Image

User avatar
gensuta
Newbie
Posts: 19
Joined: Sun Apr 17, 2016 2:31 am
Completed: Green Hero, Solar Sprout, Saturday Fright, I Dream of OCs, Rendezvous
Projects: Skate & Date, Blastagirl, Iris, A Slow Ride
Tumblr: gensuta
Deviantart: gensuta
Github: gensuta
Soundcloud: gensuta
itch: gensuta
Contact:

Re: Animating the textbox

#3 Post by gensuta » Tue Jan 03, 2017 12:05 am

Divona wrote:"window_background" doesn't take transform right where it is. I suggest you define the image properly with transform first.

Code: Select all

image kaede_window_background:
    "gui/KL_1.png"
    pause 1.0
    "gui/KL_2.png"
    pause 1.0
    repeat

define k = Character('Kaede', 
    color="#c8ffc8",
    image="kaede", 
    window_background = "kaede_window_background")
Oh wowie that worked just fine! Thank you!

Post Reply

Who is online

Users browsing this forum: Google [Bot], _ticlock_