Imagemap does not work properly

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
DeKelias
Newbie
Posts: 3
Joined: Mon Mar 18, 2013 4:42 am
Completed: Mystic Styx
Location: Russia, Tobolsk
Contact:

Imagemap does not work properly

#1 Post by DeKelias »

Hello! I need your help, guys. Screen with imagemap does not work properly after previous call screen:

Code: Select all

screen fable_2_minigame:
    add "minigame/Fable_bar.png" align(0.5,0.5)
    add "minigame/Fable_point.png" at fable_point_move(fable_minigame_bar)
    text "[fable_minigame_score]\nHIT" size 35 color "#dde4e5" align(0.5,0.1)
    text "[fable_minigame_death]\nDamage" size 35 color "#dde4e5" align(0.5,0.2)
    #text "[fable_minigame_bar]\nЗначение бара" size 20 color "#dde4e5" align(0.5,0.3)
    #text "[fable_you_press_button]" align(0.5,0.3)

    if fable_minigame_bar >= -6 and fable_minigame_bar <= 8:
        key "K_SPACE":
            if fable_you_press_button == 0:
                if fable==1:
                    if fable_minigame_score < 4:
                        action [SetVariable("fable_minigame_score", fable_minigame_score + 1), SetVariable("fable_you_press_button", fable_you_press_button + 1), Show("you_press_button_good")]
                    else:
                        action Jump("Black_house")
                elif fable==2:
                    if fable_minigame_score < 6:
                        action [SetVariable("fable_minigame_score", fable_minigame_score + 1), SetVariable("fable_you_press_button", fable_you_press_button + 1), Show("you_press_button_good")]
                    else:
                        action Jump("Battle")
            elif fable_you_press_button == 1:
                action SetVariable("fable_minigame_score", fable_minigame_score + 0)

            elif fable_you_press_button == -1:
                action SetVariable("fable_minigame_score", fable_minigame_score + 0)

    else:
        key "K_SPACE":
            if fable_you_press_button == 0:
                if fable_minigame_death < 1:
                    action [SetVariable("fable_minigame_death", fable_minigame_death + 1), SetVariable("fable_you_press_button", fable_you_press_button +1), Show("you_press_button_bad")]
                else:
                    if fable==1:
                        action Jump("fable_deadend")
                    elif fable==2:
                        action Jump("fable_deadend2")
            elif fable_you_press_button == 1:
                action SetVariable("fable_minigame_death", fable_minigame_death + 0)
            elif fable_you_press_button == -1:
                action SetVariable("fable_minigame_death", fable_minigame_death + 0)

P.S. - Sorry for my bad English...

User avatar
DeKelias
Newbie
Posts: 3
Joined: Mon Mar 18, 2013 4:42 am
Completed: Mystic Styx
Location: Russia, Tobolsk
Contact:

Re: Imagemap does not work properly

#2 Post by DeKelias »

SOLVED.

After this minigame (Fable minigame) need hide screens left timer and right timer. I hide screen left timer only... Omg... :D

P.S. - Sorry for my bad English...

Post Reply

Who is online

Users browsing this forum: No registered users