Help with matching pairs app

Can someone PLS show me exact blocks and steps for my 1st quest screen (with 5 question buttons & 5 answer buttons with scoring for a Match the Pairs app) that I can copy onto more screens. Im trying to build this App for a 7 year old disabled grandson so that he only needs to tap the correct answers, (and if posible) should he make a mistake the App must show him which he must retry.

Hi @laenette.dejager4dnk, hope all is well.
If you would require help for building an app, DM someone to hire to build your app for you or coach you directly. Choice is up to you.

Good luck with your project!

P.S. Don’t hire me. I’m not for hire!

Thx, but Im the 24/7 caregiver of my disabled grandson who has Propionic Acidemia, cerebral palsy & dystonia and just cannot afford to hire someone. (I managed my 1st 3 pages, but just cannot get my 1st quiz screen right).

(I’ve updated the title of this topic to make it more quickly readable.)

I don’t know how much this will help but I would use Any Component blocks because it simplifies the number of blocks needed. Note that this is not a completed fix. I’ve merely started the process and it’s going to take a lot of time to get it working for all of your possible matches and all of your screens.

I also haven’t fully tested it. I was trying to get it coded before leaving for work!

Modified project link: [see new link below]

1 Like

Thank you so, so, so much for your help!!! Can you just pls tell me where must I add the questions and answer buttons’ unique names in and where does a new question starts and answer + it’s score ends?
My questions and answers will all be buttons and mostly with emojis on it.
There will be 12 groups that each will consist of 5 questions (1st 5 are identical pairs, then types of emotions, then 5 “what goes together” emojis eg police car and policeman, then how many passengers in taxi car, taxi minibus, taxi large bus. etc. After that comes math emoji buttons and lastly spelling/words and the emoji that fits the word the best. This will all be in 3 levels). Thx again for your kindness to help me!!!

The method I provided will only work for clicking matching items one after the other. What you’re describing is too much for me to help you with on the forums. It would require a lot of my time.

Also, sorry, I was rushing this morning and assumed you were using labels for your emojis but you are using buttons. Here’s the updated blocks for that…

Project link: Thunkable

1 Like

THANK YOU SO MUCH for all the effort you’ve put in, to help me!!! It helps me tremendously
and is much appreciated. I think I will now be able to go forth on that.
(A). I just need to know how can I copy the Blocks that you created onto/into my App’s 3rd screen’s Blocks area? (I don’t know how to select them all).
(B). And then, how can I save a Backup of my new edited App? (just for in case I mess things up there).

Oops! I forgot to ask how do I block out (grey out) the buttons/answers that were correct for that page?

(A) You can’t copy blocks from one project to another. You will need to re-create the blocks I used.

(B) If you have a license that allows for version history, you can use that. If not, then you will need to make a copy of your project to use as a backup. Because Thunkable auto-saves, it’s important to have a backup in case you make a mistake.

1 Like

Buttons have a property called Disabled that you can set to true (or false).

image

1 Like

Thanks a million for ALL your help & time!

1 Like

Hi Tatiang. Sorry to bother you, but can you pls help me find the error on Screen 4’s score counting, as it just does not want to work the same as on Screen 3. (I did change all the Question, Answer, Counting & Score buttons/text fields to unique names).

I can take a look. Can you share a link to your project? The share links are snapshots so the previous one won’t have all of the changes you’ve made since then.

https://x.thunkable.com/projects/6739af157f22562290bd2d59/a889c53c-ac0f-420a-ac50-4aad2468d640/blocks

Your blocks look correct. I don’t see an obvious problem with the code. If I have time, I’ll do a little debugging and let you know what I find. This is my method for debugging in Thunkable: Debugging in Thunkable X (Video)

Edit: I tried this and the debug label is not showing the values I would expect:

Modified project link: Thunkable

Edit #2: I take that back. I do see a problem. You’re setting the value of the emoji lists at the top of the screen but then not using those variables when you check to see if the user’s input is in those lists.

1 Like

The problem is here, in yellow:

When something is a list, I like to call it a list such as app variable QuestionEmojis list. That cues my brain into knowing to use it with list blocks.

Also, if I were coding this, I would use a single variable for all games rather than a separate variable for each game. As long as you set each variable’s starting value when each screen opens, it’s fine to do that. So for example, instead of app variable SelectedQuestionEmojiL1G2, you might just use app variable SelectedQuestionEmoji for every game. It’s so much less to manage and keep track of. And if you need to later rename a variable, you only have to do it once for ten or twenty games rather than ten or twenty times!

Having so many variables to keep track of feels overwhelming to me:

1 Like

THX! So, do you mean I can leave out ALL the last …L1G2 parts on ALL VARIABLE NAMES on all the following Screens? Or just some of the variable names? AND can I just add “List” to the 2 top Question and Answer list names? AND what should the yellow marked variable be?

Well, I would typically initialize the variables I need on the first screen. And then use (set/get values for) those same variables on all other screens. You don’t have to do it that way. It’s just easier for me to manage and makes adding new screens (new games) so much quicker. If you did that, you would not need to specify which levels or games the variables are for so yes, you would not need the L1G2, etc. in the variable names.

Yes, you can rename these variables to add “list” at the end:

The variable in the yellow rectangle should be app variable AnswerEmojisL1G2 because it’s checking to see if that list of emojis contains the emoji that was clicked. This is really just a failsafe method of making sure that the matches are not checked if some random button on the screen is clicked (like a menu button or back button, for example). Because otherwise, the Any Button Click block will trigger when any button on the screen is clicked.

1 Like

Ah, THANK YOU SO MUCH for explaining it so nicely to a 72 year old lady that doesn’t really understand all these new technology/terminology things and English so clearly.

1 Like

Hi Tatiang. Ive changed the names of the Questions & Answers lists by adding List at the end. Plus deleted all the L1G1 ends of all the other names as you suggested.
I also deleted all the initialized variable blocks from the next 2 groups/screens and only left it on the 1st group/screen of 5 questions. It worked PERFECTLY on that 1st group/screen, but the 2nd and 3rd groups/screens’ scores still do not show the score. Are there any blocks that I should’ve added to these two groups’ screens at the top to ‘tell’ the program to use the 1st group/screen’s initialized blocks? I also found NOW that my 1st screen’s score doesn’t work now anymore??? what could be the problem?