Tappable overlay fight scene help

Okay hi guys, for my story I want a scene were the reader can engage in combat, the thing is though, they get to tap on parts of the body and it will cause a reaction. I tried to start but I’m having trouble with the time starting after (because the timer keeps starting BEFORE they have a chance to tap on the overlay) and what happens if they don’t choose a choice OR if they die and have to redo the mini game.

So really I just need help with timing and restarting the game if you lose points.
If anyone can help me, please do!

@YOU is idle_fight_angry_loop and GUY PERFECT is idle_fight_angry_loop

NARRATOR
Congradulations! You’ve made it to your first mini game!

tappable [timed:5:top]
“Swing” {
@YOU is punch_fight_give_angry AND GUY PERFECT is punch_fight_receive_angry
} “Duck” {
@YOU is dance_drop_it AND GUY PERFECT is punch_fight_give_angry
} “else” {
NARR
If they don’t click fast enough…happens
}

NARR
tbd

1 Like

Are the tappable overlays actually named “swing” and “duck”? When doing a tappable choice, you must write the exact name of the overlay you’re using or else nothing will be tappable.

• As for restarting, you can create a label before the mini game starts. For example:

label begin_fight

@YOU is idle_fight_angry_loop and GUY PERFECT is idle_fight_angry_loop

• If you want to add a point for choosing the correct answer, then do this:

“OVERLAYNAME” {

@CHAR +1

NARR
Great job!

}

• When creating timed choices, if no choice is selected, it auto chooses the last choice. So what you can do is create 3 choices (ex: swing, duck, stutter) and make stutter be the last choice. If the reader selects it, or runs out of time and it’s auto chosen, it’ll restart the mini game. For example:

NARR
Congratulations on reaching your first mini game!

label begin_fight

@YOU is animation and @CHAR is animation

NARR
Ready? Begin!

tappable [timed : 5]
“SWING” {

@CHAR +1

NARR
Great job!

}
“DUCK” {

@CHAR +1

NARR
Great job!

}
“STUTTER” {

NARR
Oops! Try again!

goto begin_fight

}

—————

I hope this helps a little bit :revolving_hearts:

3 Likes

Thank you so much! I see the mistakes I made and thank you for further helping me understand. I really appreciate you sooooo much! :blush:

1 Like

Also one last question! How do I add more options to kinda keep the mini game longer? After they hit or doge the game ends but I want to at least give users the ability to do it I’d say a few times before the game ends. I also think my option to have the MC punch or doge isn’t a good idea bc they can just keep hitting punch and win the game. Do you possibly know how I would I be able to get the SupC to act in another case? Would the code be the same or I’m using IF/ELIF/ELSE?

If you know how thank you! If not I’m working on it now so I might figure it out myself too! Thank you again!

1 Like

Yeah no problem! I’m glad I made some sense in my explanation too :laughing:

So to keep the game going, you can just continue to add the same choice afterwards as many times as you want. I’ll provide an example, because I think it’ll be easier to understand that way:

NARR
Congratulations on reaching your first mini game!

label begin_fight

@YOU is animation and @CHAR is animation

NARR
Ready? Begin!
Your opponent is looking at your feet.

tappable [timed : 5]
“SWING” {

NARR
Oops! Try again!

goto begin_fight

}
“DUCK” {

NARR
Oops! Try again!

goto begin_fight

}
“JUMP” {

@CHAR +1

NARR
Great job!

}
“STUTTER” {

NARR
Oops! Try again!

goto begin_fight

}

NARR
Round two!
Your opponent isn’t paying attention.

tappable [timed : 5]
“SWING” {

@CHAR +1

NARR
Great job!

}
“DUCK” {

NARR
Oops! Try again!

goto begin_fight

}
“JUMP” {

NARR
Oops! Try again!

goto begin_fight

}
“STUTTER” {

NARR
Oops! Try again!

goto begin_fight

}

———
So here, I added an additional choice so there’s more options to choose from. For the style game you’re trying to accomplish, it would work the best if you gave a short description of the opponents actions so that the reader can choose how to beat them (such as punching when the opponent isn’t looking). I also changed all of the incorrect choices to restart the game.

You can copy this code and re-paste the game as many times as you want and it’ll just keep playing. But depending how many rounds you want the game to go, you can either keep the “begin_fight” label (which takes them to the very beginning), or you can create “round_one”, “round_two” etc labels (or whatever you want to name them), so that if the reader messes up in round 3, they won’t have to go the whole way back to the beginning.

If you choose to give points for the correct answer, then I highly suggest using the “round_one” labels, because if the reader gets the first 2 rounds correct and earns points, but messes up on round three and has to restart, they can earn endless points just by restarting the game…I hope that makes sense!

Basically, even if they get it right and earn the point, if they’re looped back around they can earn another point again :blush:

I’m not very sure what you mean by this… :thinking:

SupC is supporting character but you covered that in your explanation too! I really appreciate it! I’ll credit you for scene help. :heart:

1 Like

Ahh okay haha well I’m glad I could help! And if you have any other questions, you’re always welcome to pm me and I will try my best to help :revolving_hearts:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.