atl How do you control flow?

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
visual00
Regular
Posts: 28
Joined: Fri Aug 22, 2014 8:28 am
IRC Nick: TaeIn
Contact:

atl How do you control flow?

#1 Post by visual00 »

hi guys!
I will ask you a question but
I can't speak english very well. I'm sorry
You understanding please

this is my code

Code: Select all

image bg = im.Scale("classroom1.png", 1280, 720)
image pini normal = "pini_normal.png"
define pini = Character('Pini', color="#c8ffc8")

transform at_fade(sec, flag):
    if flag == 1:
        alpha 0.0
        linear sec alpha 1.0
    elif flag == 2:
        alpha 1.0
        linear sec alpha 0.0
    else:
        pass

label start:
    
    scene bg

    show pini normal at at_fade(sec = 3.0, flag = 1)

    pini "Here I am!"
    
    pini "Buh-bye now!"

    hide pini at at_fade(sec = 3.0, flag = 2)

    pini "test"
  
    return
i made at_fade

my at_fade I want to control the flow

but my code Error occurs

how can i do?
Attachments
atl control flow.zip
(3.85 MiB) Downloaded 21 times

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: atl How do you control flow?

#2 Post by xela »

Good question...

There is an option explained here:

http://lemmasoft.renai.us/forums/viewto ... 82#p354011

Otherwise I am not entirely sure what can be done here while using Ren'Py script with it's default statements. Obvious solution would be use python but that's prolly not what you're asking.
Like what we're doing? Support us at:
Image

Post Reply

Who is online

Users browsing this forum: Amazon [Bot]