Code: Select all
default step = 0 # Tracks which step the player is currently at
default stitchxPos = 1200 # xPosition of the needle
default stitchList1 = ["U","R","L","U","R","L","U","R","L"] # The sequence of stitches
label loopback:
if step < len(stitchList):
$ currentStep = stitchList[step]
$ print(currentStep)
if currentStep=="U":
show Needle1 Up at needleThread
show Point Up at truecenter
call screen sewingMinigame("up")
elif currentStep=="R":
show Needle1 Right at needleThread
show Point Right at truecenter
call screen sewingMinigame("right")
elif currentStep=="L":
show Needle1 Left at needleThread
show Point Left at truecenter
call screen sewingMinigame("left")
screen sewingMinigame(direction):
key ("input_"+direction) action Call("miniContinue")
label miniContinue:
if currentStep=="U":
show stitchDone at needleThread # This is my working solution to my issue
$ stitchxPos += -80
$ step+=1
jump loopback
else:
hide Point
hide Needle
return