ATL image statements in main menu

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
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

ATL image statements in main menu

#1 Post by Scribbles »

How would you add an image with ATL statements into the main menu?

Code: Select all

add good_morning
doesn't work because it says image it not defined

Code: Select all

 add image good_morning
doesn't work (i thought I'd give it a try lol)

Is there documentation I'm missing that tells you how to do this in screen language? I searched the issue but didn't find anything solid (unless I missed something?)

my image:

Code: Select all

image good_morning:
    contains:
        "images/graphics/morning_base.png"

    contains:
        "images/graphics/morning_lit.png"
        linear 0.0 alpha 0.25
        linear 0.1 alpha 1.0
        linear 0.2 alpha 0.5
        linear 0.3 alpha 1.0
        linear 0.4 alpha 0.5
        linear 0.5 alpha 1.0
        repeat 2
(the atl part is a WIP just... fyi lol - I'm still trying to get it to display exactly how I want it to)

it works great inside the code with(though I have to add a pause to allow the image to display in the time I want it - but again I'm still reading through ATL and messing with it)

Code: Select all

 show good_morning with dissolve
I also tried defining the images in a -1 init python block, but I got the invalid syntax error ^^;;;;

help? Is it just not possible right now? (I'm using the latest Renpy, but not any of the nightly builds)
Image - Image -Image

User avatar
DannyGMaster
Regular
Posts: 113
Joined: Fri Sep 02, 2016 11:07 am
Contact:

Re: ATL image statements in main menu

#2 Post by DannyGMaster »

You could try and declare the image as an atl statement:

Code: Select all

transform good_morning:
    contains:
        "morning_base.png"

    contains:
        "morning_lit.png"
        linear 0.0 alpha 0.25
        linear 0.1 alpha 1.0
        linear 0.2 alpha 0.5
        linear 0.3 alpha 1.0
        linear 0.4 alpha 0.5
        linear 0.5 alpha 1.0
        repeat 2
And then use the add statement normally in the screen.

I think I did this before and it worked, give it a try?
The silent voice within one's heart whispers the most profound wisdom.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: ATL image statements in main menu

#3 Post by Donmai »

have you tried

Code: Select all

add "good_morning"
?
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: ATL image statements in main menu

#4 Post by Scribbles »

Donmai wrote: Thu Aug 31, 2017 8:48 am have you tried

Code: Select all

add "good_morning"
?
OMG, no I didn't realize that would work > < but it did! thank you so much!! I knew I had to be missing something
Image - Image -Image

Post Reply

Who is online

Users browsing this forum: Dark12ose, Google [Bot], Sugar_and_rice