help me how to fix line's identation

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
chandra123steven
Regular
Posts: 28
Joined: Fri May 13, 2016 7:15 am
Contact:

help me how to fix line's identation

#1 Post by chandra123steven » Sat May 28, 2016 10:30 pm

please see ss and my code

Code: Select all

    
    menu:
        
    "Terima Cindy"
        jump ending4
        
    "Tolak Cindy"
        jump ending2
        
        
    label ending4:
    $ menu_flag = True
    
    scene pantai bertebing
    
    x "[player_name], kumohon jawab"
    
    label ending2:
    $ menu_flag = False
    
Attachments
Untitled.png

User avatar
DragoonHP
Miko-Class Veteran
Posts: 758
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Re: help me how to fix line's identation

#2 Post by DragoonHP » Sat May 28, 2016 11:02 pm

It should be like this

Code: Select all

   
    menu:
        "Terima Cindy"
            jump ending4
       
        "Tolak Cindy"
            jump ending2

label ending4:
    $ menu_flag = True
   
    scene pantai bertebing
   
    x "[player_name], kumohon jawab"
   
label ending2:
    $ menu_flag = False
Read this > https://www.renpy.org/doc/html/quickstart.html

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: help me how to fix line's identation

#3 Post by korova » Sun May 29, 2016 7:14 am

Actually, the menu choices should have semi-colons (:) at the end like that :

Code: Select all

    menu:
        "Terima Cindy":
            jump ending4
       
        "Tolak Cindy":
            jump ending2
plus you should add a return or jump statement at the end of ending4, or ending2 will play juste after ending4

chandra123steven
Regular
Posts: 28
Joined: Fri May 13, 2016 7:15 am
Contact:

Re: help me how to fix line's identation

#4 Post by chandra123steven » Thu Jun 02, 2016 4:45 am

thanks all

Post Reply

Who is online

Users browsing this forum: Bing [Bot], nyeowmi