image over new gui

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
Theodosius
Newbie
Posts: 9
Joined: Fri Oct 07, 2016 8:24 pm
Contact:

image over new gui

#1 Post by Theodosius » Fri Oct 07, 2016 8:41 pm

Hi! I started using the new version of Renpy. How to display an image over the new gui? Actually, I wanted to use animated side images, but when i use something like this:

Code: Select all

image side jirnn = Animation("im/droch3.png", 0.3, "im/droch4.png", 0.3)
the image just not displayed. Ok, after that I tried to make it differently:

Code: Select all

image jirnn = Animation("im/droch3.png", 0.3, "im/droch4.png", 0.3)
.....
show jirnn onlayer overlay

aaaand... it's not working T_T
Attachments
screen.png

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: image over new gui

#2 Post by Divona » Fri Oct 07, 2016 11:38 pm

I don't even know if Ren'Py has Animation().
Probably try:

Code: Select all

image side jirnn:
    "im/droch3.png"
    0.3
    "im/droch4.png"
    0.3
Completed:
Image

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: image over new gui

#3 Post by papiersam » Fri Oct 07, 2016 11:52 pm

I don't even know if Ren'Py has Animation().
For the record, it does, but it's used in the context of python statements:

Code: Select all

    $some_im = Animation("im1.png", 1.0, "im2.png", 1.0)

screen ttest:
    add some_im #can't do this with image declare, if I'm not mistaken
You can also add transforms to it, something like:

Code: Select all

$img = Animation( "im.png", 0.5, dissolve, "im1.png", 1.0, dissolve, "im2.png" 0.5, dissolve)

Theodosius
Newbie
Posts: 9
Joined: Fri Oct 07, 2016 8:24 pm
Contact:

Re: image over new gui

#4 Post by Theodosius » Sat Oct 08, 2016 12:05 am

i don't know why, but it work with simpe images, but not with side images
Divona wrote:I don't even know if Ren'Py has Animation().
Probably try:

Code: Select all

image side jirnn:
    "im/droch3.png"
    0.3
    "im/droch4.png"
    0.3
Initially this crash my game, but then began to work... thx!

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: image over new gui

#5 Post by Divona » Sat Oct 08, 2016 12:33 am

r_sami wrote:
I don't even know if Ren'Py has Animation().
For the record, it does, but it's used in the context of python statements:

Code: Select all

    $some_im = Animation("im1.png", 1.0, "im2.png", 1.0)

screen ttest:
    add some_im #can't do this with image declare, if I'm not mistaken
You can also add transforms to it, something like:

Code: Select all

$img = Animation( "im.png", 0.5, dissolve, "im1.png", 1.0, dissolve, "im2.png" 0.5, dissolve)
That's good to know. I can't find information on Animation() in Ren'Py documentation. Has it been forgotten?
Completed:
Image

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: image over new gui

#6 Post by Ocelot » Sat Oct 08, 2016 1:27 am

For the record, it does, but it's used in the context of python statements:

Code: Select all

    $some_im = Animation("im1.png", 1.0, "im2.png", 1.0)

screen ttest:
    add some_im #can't do this with image declare, if I'm not mistaken
Actually you can do that:

Code: Select all

image some im:
    "im1.png"
    1.0
    "im2.png"
    1.0

screen ttest:
    add 'some im'
I can't find information on Animation() in Ren'Py documentation. Has it been forgotten?
It is deprecated
< < insert Rick Cook quote here > >

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: image over new gui

#7 Post by papiersam » Sat Oct 08, 2016 1:59 pm

Actually you can do that:

Code: Select all

image some im:
    "im1.png"
    1.0
    "im2.png"
    1.0

screen ttest:
    add 'some im'
Huh. Good to know.
It is deprecated
Didn't actually know that. I think I accidentally stumbled into Animation() and played around with it until it became more useful than ATL. Because I find that "image some im" can't be switched in the middle of an interaction, then back again, where as Animation() can be changed with a simple casting statement.

Post Reply

Who is online

Users browsing this forum: No registered users