- Sep 29, 2018
- 176
- 393
Hello,
I want to know if there is a way to make this more simple?
Thanks in advance
I want to know if there is a way to make this more simple?
Code:
hbox:
xalign 0.5
yalign 0.54
if jumping:
if b.race == 0:
imagebutton auto "/gui/jump_%s.png":
xalign 0.5
action [Function(renpy.hide,"kid jumping sport"), Function(renpy.show,"tom jumping sport", at_list=[kid_jump]), SetVariable("jj", jj+ 1), SetVariable("b.stamina", b.stamina-1), Play("sfx3", "/sfx/click.mp3"), Play("sfx1", "/sfx/clap.mp3"), SetVariable("jumping", False)]
if renpy.variant("touch"):
at customzoom
else:
at customzoom2
if b.race == 1:
imagebutton auto "/gui/jump_%s.png":
xalign 0.5
action [Function(renpy.hide,"kid jumping sport"), Function(renpy.show,"j3 jumping sport", at_list=[kid_jump]), SetVariable("jj", jj+ 1), SetVariable("b.stamina", b.stamina-1), Play("sfx3", "/sfx/click.mp3"), Play("sfx1", "/sfx/clap.mp3"), SetVariable("jumping", False)]
if renpy.variant("touch"):
at customzoom
else:
at customzoom2
if b.race == 2:
imagebutton auto "/gui/jump_%s.png":
xalign 0.5
action [Function(renpy.hide,"kid jumping sport"), Function(renpy.show,"lee jumping sport", at_list=[kid_jump]), SetVariable("jj", jj+ 1), SetVariable("b.stamina", b.stamina-1), Play("sfx3", "/sfx/click.mp3"), Play("sfx1", "/sfx/clap.mp3"), SetVariable("jumping", False)]
if renpy.variant("touch"):
at customzoom
else:
at customzoom2
if b.race == 3:
imagebutton auto "/gui/jump_%s.png":
xalign 0.5
action [Function(renpy.hide,"kid jumping sport"), Function(renpy.show,"ricardo jumping sport", at_list=[kid_jump]), SetVariable("jj", jj+ 1), SetVariable("b.stamina", b.stamina-1), Play("sfx3", "/sfx/click.mp3"), Play("sfx1", "/sfx/clap.mp3"), SetVariable("jumping", False)]
if renpy.variant("touch"):
at customzoom
else:
at customzoom2
else:
imagebutton idle "/gui/jump_disabled.png":
xalign 0.5
action NullAction()
if renpy.variant("touch"):
at customzoom
else:
at customzoom2
timer 1.0 action SetVariable("jumping", True)
if jj >= 50:
timer 0.1 action [Hide("minigame_jumping_jacks", transition=dissolve), Jump("jumping_jacks_win"), SetVariable("jj", 0), SetVariable("cristina.jj", 0)]