Puzzel game - How should i structure it?

Hello Bubble, I’m currently building a puzzle game function to my app. Some of the puzzles (and 30 more different types) will look like the following:




My primary idea was to create individual groups and workflows for each puzzel with states etc. That way i can display different options like images, text or colors as the options. There will be over 100+ puzzles so I’m not sure if this is a bad approach?

My idea is that the user can not move forward without completing the puzzle before.

Is it better to use option sets/data types?

Thankful for any ideas or tips :slight_smile:

My suggestion to you would be try to find the common patterns for the puzzles. It looks like most of them are multiple-choice questions. So, you can probably survive with just one type of question if that’s all you have. You can’t possibly create 100 groups (Ok, actually you can, but that doesn’t make sense). Anyway, find common questions in your puzzles. Then each question might have a list of images, description and a list of answers. Each answer can have a description and a list of images as well. I hope that makes sense.

2 Likes

Hey @Orbit

I have built things like this before and have helped clients build theirs as well.

I suggest making an admin page as a ‘builder’ for it. That way, you can do what @hergin suggests easier. Sort of like ‘Google Forms’ for your puzzle game. Then you can build as many questions as you want and even set up different games without having to ‘hard code’ each question each time.

Does that make sense? Hope that helps. :blush:

2 Likes

Hey, thank you for taking your time to comment. Yes exactly, i think i will have to keep it to the same common style/options with 4 options. Let’s say i have 2 or 3 options that should be fine if i use a repeating group right to display the options?

Do you recommend using data types or option sets?

Thank you, i will have a look at this approach!

1 Like

I recommend using data types for this sort of thing. Option sets could be used for the ‘type’ of puzzle though. :blush:

Perfect then i have a plan, thank you so much! :slight_smile:

1 Like

Quick Question, how do i keep the other ones locked until they have completed the puzzle before that?

Have an order number attached to it and display them one at a time by the order number. Does that make sense? That’s just one idea. I’m sure there are more ways to do it too. That was just the first way I thought of. :blush:

1 Like

Can anybody tell me how to organize board games

Good idea, i tried it now and also assigned it to a user (like puzzle1) then I do an if current user puzzle + 1 = Current parent puzzle make visible and it worked super!

One thing, how do i set which answer is correct? I have the data type answers, which is a list of images (4)

1 Like

Mark the answer with a field that says ‘rightAnswer’ and make it a yes/no field. Then just mark the one that is correct. Would that work for your use case? :blush:

1 Like

What do you mean? What exactly are you trying to do? Hope we can assist. :blush:

Hmm do you mind showing it? not sure on this one what you mean sorry

Sure. I will see if I can give you an example. I probably won’t have time to build it out until next week sometime though. :blush: I’m not at my computer at the moment.

1 Like

No worries, thanks a lot! the thing im trying to understand is how to set the image to the correct answer

It really helped