Need Help for my Tappable overlay ASAP

Hi, so I have coded a tappable mini game as per told in Youtube tutorial. But I’m getting some error. Would appreciate it



1 Like

first bracket goto makeup is outside

1 Like

and you do have to but something in the if brackets, I don’t know about this mini game but i can look into it

Pls, I would appreciate about it

can you send the script in the chat

salbat.author is typinggg i think she knows it :rofl: :rofl:

1 Like

I did but now im getting another error

Hello,

You need to add } for the ones that are missing it.

Remember to always add a closing bracket } to an open one {. When working with choices within choices, you always add an additional } at the end.

Example:

"OBJECT" {
if ("CHOICE1) {

} else {

}
} 
goto PACKUP

"OBJECT"
if ("CHOICE2){

} else {

}
}

So in your case, your coding must look like this:

"TOOTHBRUSH" {
if (TOOTHBRUSH) {

} else {

}
}
goto PACKUP

"MAKEUP" {
if (MAKEUP) {

} else {

}
}

As you see, I added an additional closing bracket, so the “TOOTHBRUSH” and “MAKEUP” has both an opening + the closing bracket it was missing.

Edit: Don’t forget to add an additional } to all the other ones.

If you have any other issues with coding, don’t hesitate to reach out to me. :bat::hearts:

1 Like

:joy:

1 Like

yesss :laughing: :heart:

1 Like

label PACKUP

tappable [pan:1:3]
“TOOTHBRUSH”{
if (TOOTHBRUSH) {
}else{
gain TOOTHBRUSH
@overlay TOOTHBRUSH opacity 0.00 in 0.5
}
}
goto PACKUP

“MAKEUP”{
if (MAKEUP) {
}else{
gain MAKEUP
@overlay MAKEUP opacity 0.00 in 0.5
}
}
goto PACKUP
“TOOTHPASTE”{
if (TOOTHPASTE) {
}else{
gain TOOTHBRUSH
@overlay TOOTHPASTE opacity 0.00 in 0.5
goto PACKUP
}
“SUNSCREEN”{
if (SUNSCREEN) {
}else{
gain SUNSCREEN
@overlay SUNSCREEN opacity 0.00 in 0.5
goto PACKUP
}
“CHIPS”{
if (CHIPS) {
}else{
gain CHIPS
@overlay CHIPS opacity 0.00 in 0.5
goto PACKUP
}
“HEADPHONE”{
if (HEADPHONE) {
}else{
gain HEADPHONE
@overlay HEADPHONE opacity 0.00 in 0.5
goto PACKUP
}
“SKINCARE SET”{
if (SKINCARE_SET) {
}else{
gain SKINCARE_SET
@overlay SKINCARE SET opacity 0.00 in 0.5
goto PACKUP
}
“MONEY”{
if (MONEY) {
}else{
gain MONEY
@overlay MONEY opacity 0.00 in 0.5
goto PACKUP
}
“TINTED OMBRED THIN FRAMED PURPLE BLUE”{
if (TINTED OMBRED THIN FRAMED PURPLE BLUE) {
}else{
gain TINTED_OMBRED_THIN_FRAMED_PURPLE_BLUE
@overlay TINTED OMBRED THIN FRAMED PURPLE BLUE opacity 0.00 in 0.5
goto PACKUP
}
“TOILET PAPER”{
if (TOILET_PAPER) {
}else{
gain TOILET_PAPER
@overlay TOILET PAPER opacity 0.00 in 0.5
goto PACKUP

}
“PORTABLE CHARGER”{
if (PORTABLE_CHARGER) {
}else{
gain PORTABLE_CHARGER
@overlay PORTABLE CHARGER opacity 0.00 in 0.5
goto PACKUP
}
“PASSPORT”{
if (PASSPORT){
}else{
gain PASSPORT
@overlay PASSPORT opacity 0.00 in 0.5
goto PACKUP
}
“INSECT REPELLENT”{
if (TOOTHBRUSH) {
}else{
gain INSECTREPELLLENT
@overlay INSECTREPELLLENT opacity 0.00 in 0.5
goto PACKUP
}
“FLASHLIGHT”{
if (FLASHLIGHT) {
}else{
gain FLASHLIGHT
@overlay FLASHLIGHT opacity 0.00 in 0.5
goto PACKUP
}

I checked in the portal and there’s a lot of missing brackets. If you click on the triangle on the side of the numbers, it will turn red if there is no matching set/or doesn’t fold

I did it so the first Code was ok now the second code I did the same but its showing error as

1 Like

Yes. Do the same for the others.

Hold on a minute, let me copy & paste your fixed script. :hearts:

1 Like
label PACKUP

tappable [pan:1:3]
“TOOTHBRUSH”{
if (TOOTHBRUSH) {
}else{
gain TOOTHBRUSH
@overlay TOOTHBRUSH opacity 0.00 in 0.5
}
}
goto PACKUP

“MAKEUP”{
if (MAKEUP) {
}else{
gain MAKEUP
@overlay MAKEUP opacity 0.00 in 0.5
}
}
goto PACKUP

“TOOTHPASTE”{
if (TOOTHPASTE) {
}else{
gain TOOTHBRUSH
@overlay TOOTHPASTE opacity 0.00 in 0.5
goto PACKUP
}
}

“SUNSCREEN”{
if (SUNSCREEN) {
}else{
gain SUNSCREEN
@overlay SUNSCREEN opacity 0.00 in 0.5
goto PACKUP
}
}

“CHIPS”{
if (CHIPS) {
}else{
gain CHIPS
@overlay CHIPS opacity 0.00 in 0.5
goto PACKUP
}
}

“HEADPHONE”{
if (HEADPHONE) {
}else{
gain HEADPHONE
@overlay HEADPHONE opacity 0.00 in 0.5
goto PACKUP
}
}

“SKINCARE SET”{
if (SKINCARE_SET) {
}else{
gain SKINCARE_SET
@overlay SKINCARE SET opacity 0.00 in 0.5
goto PACKUP
}
}

“MONEY”{
if (MONEY) {
}else{
gain MONEY
@overlay MONEY opacity 0.00 in 0.5
goto PACKUP
}
}

“TINTED OMBRED THIN FRAMED PURPLE BLUE”{
if (TINTED OMBRED THIN FRAMED PURPLE BLUE) {
}else{
gain TINTED_OMBRED_THIN_FRAMED_PURPLE_BLUE
@overlay TINTED OMBRED THIN FRAMED PURPLE BLUE opacity 0.00 in 0.5
goto PACKUP
}
}

“TOILET PAPER”{
if (TOILET_PAPER) {
}else{
gain TOILET_PAPER
@overlay TOILET PAPER opacity 0.00 in 0.5
goto PACKUP
}
}

“PORTABLE CHARGER”{
if (PORTABLE_CHARGER) {
}else{
gain PORTABLE_CHARGER
@overlay PORTABLE CHARGER opacity 0.00 in 0.5
goto PACKUP
}
}

“PASSPORT”{
if (PASSPORT){
}else{
gain PASSPORT
@overlay PASSPORT opacity 0.00 in 0.5
goto PACKUP
}
}

“INSECT REPELLENT”{
if (TOOTHBRUSH) {
}else{
gain INSECTREPELLLENT
@overlay INSECTREPELLLENT opacity 0.00 in 0.5
goto PACKUP
}
}

“FLASHLIGHT”{
if (FLASHLIGHT) {
}else{
gain FLASHLIGHT
@overlay FLASHLIGHT opacity 0.00 in 0.5
goto PACKUP
}
}

Try to copy and paste this into your script.

That should fix the } warning.

I did But this Make up error is what I’m not understanding
look

1 Like

Might be a glitch.

Press the enter button on line 5779 (to move “MAKEUP”{ to the line below, you can always then return it to previous line it was on), then save and see if it fixes it.

Let me know if the previous solution works, however if it doesn’t. Then my guess is it could be the quotation marks you’re using. They should be more like these: "Choice". And then the choices should automatically be colored yellow if I remember correctly? (to show that it’s working, and considering you’re working in dark mode).

Hmm, I tried to cut that Part where it’s getting error but it seems like it’s all the same