I realize that a majority of what my script is doing is contained within a label.
I'm thinking that if I instead control the combat from within a python environment rather than a label, I can probably keep it from auto-forwarding. This may be more difficult, it may not be.
I've also looked into maybe using pygame but from what I've seen, renpy+pygame isn't a worthwhile adventure. I'll continue to search the lemmasoft forums for how other people have implemented minigames and try to glean some sort of information from there.
Edit:
So I attempted to rewrite the scene with Python. It seems like I'm in the same pickle though.
Code: Select all
label jankyass:
python:
renpy.scene()
battleBG = "images/battle_"+CombatEnvironment+".png"
renpy.show(battleBG)
fighting = True
if fighting:
renpy.show_screen("MobStatBoxes", Enemy.combatants)
renpy.show_screen("PartyStatBoxes")
renpy.show_screen("battleBox", "Status Message")
if len(Enemy.combatants) == 1:
renpy.show(Enemy.combatants[0].portrait, at_list=[centerMob])
if len(Enemy.combatants) == 2:
renpy.show(Enemy.combatants[0].portrait, at_list=[leftMobDouble])
renpy.show(Enemy.combatants[1].portrait, at_list=[rightMobDouble])
if len(Enemy.combatants) == 3:
renpy.show(Enemy.combatants[0].portrait, at_list=[leftMob])
renpy.show(Enemy.combatants[1].portrait, at_list=[centerMob])
renpy.show(Enemy.combatants[2].portrait, at_list=[rightMob])
renpy.pause(delay=10)
If I don't include a pause, the scene goes away. I also have this blank text box and I'm not sure what is calling it.
https://streamable.com/hof7r
I'm wanting to let the user control the game flow from their actions with textbuttons within the battleBox, but I can't do that if the game doesn't stay still.