Mini game coding. Help!

Hey! This wouldn’t be very complicated. If I were you, I would get three tappable arrow overlays and put them on either side and the top of the screen (Dara’s dressing game arrows would work for the sides, just make sure to credit her). You will have to duplicate and turn one of these arrows to make it face the third direction. Then I would have a speech bubble say something like:

NARRATOR
You are entering a minigame! Tap the arrows to run the right way, or get sent back to the start.

label escape_start

MAIN CHARACTER
We need to escape! Which way should we go?

Then you will code a tappable choice. If they pick the correct direction, they will get dialogue prompting them to keep going. If they pick the wrong direction, they will get told they’re wrong and sent back to the start using gotos. In this example, let’s say left was correct, then right.

tappable
“LEFT ARROW” {

} “RIGHT ARROW” {

NARRATOR
You went the wrong way!
goto escape_start

} “FORWARD ARROW” {

NARRATOR
You went the wrong way!
goto escape_start

}

MAIN CHARACTER
This way looks all clear! Where should I turn next?

tappable
“LEFT ARROW” {

NARRATOR
You went the wrong way!
goto escape_start

} “RIGHT ARROW” {

} “FORWARD ARROW” {

NARRATOR
You went the wrong way!
goto escape_start

}

MAIN CHARACTER
Nice! Where next?

And then you’ll just keep doing it like that until your escape is done. My Instagram is @rachelonepisode :slight_smile:

3 Likes

Thank you so much for helping me! You always cease to amaze me everytime🥰 I’ll ask you again if I have any doubts. I hope you won’t mind!

2 Likes

Of course! My inbox is always open :blush: :blush:

2 Likes

Thankssssssss :blob_hearts:

How do I duplicate the arrow game thing?

I would just upload the arrow overlay a third time, and then rotate it in the script! Otherwise you can follow this guide for how to duplicate overlays, but I do find that it can get glitchy when tappable overlays are involved:

3 Likes

Yeaah okayyyyy!!

Umm I don’t need to add anything else right? Or should I add goto right like that? after each choice thing.

You only need to use the gotos to get back to the start of the minigame, if they click the correct direction, they will automatically go to the next piece of dialogue, and then to the next choice.

1 Like

So no need to add anything? Should I just copy this and do some changes, right?

Yup! You can just copy and paste it. Make sure you name your overlays “LEFT ARROW”, “RIGHT ARROW” and “FORWARD ARROW”. You will have to create and place the overlays on screen the way you would any regular overlay. Make sure to indent the dialogues and change “MAIN CHARACTER” to your character’s name (and also any of the dialogue!) and you should be good to go!

1 Like

Thank you so muchhhh! I just created duplicate arrow named as LEFT_ARROW_2. Should I change the name as FORWARD ARROW?

No worries! Anywhere I put “FORWARD ARROW” just change it to “LEFT_ARROW_2” :blush:

2 Likes

Yeah okayyyyy! Thanks againnnnn :two_hearts: :kissing_heart:

1 Like

Rachel please help me!!!:pleading_face:

Try it like this for all of them:
&overlay LEFT_ARROW create
&overlay LEFT_ARROW opacity 1 in 0
&overlay LEFT_ARROW scales to 0.8 0.8
&overlay LEFT_ARROW shifts to 7 187 in zone 1

I would also upload the FORWARD_ARROW overlay as a completely separate overlay instead of using “create from”. I find that when using tappable overlays it can get a little glitchy when using the “create from” command.

1 Like

Yeah okayyyyy!! Thanks again❤

FORWARD_ARROW isn’t happening :sob:
It says that overlay isn’t there.

Can you copy and paste your script here? I’ll try it in my portal.

1 Like

If you please don’t mind, I’m sending the screenshot because presently I’m using the phone and when I copy, the whole story is being copied. I hope you understand!!

Background and FORWARD_ARROW shift number is temporary!