How to go about making a word guessing game based on picture
I want to make a game where you are shown a picture of lets say a tree and you have random letters and they contain the word tree. You also have 4 spaces (Whatever the word lenght) and you need to put the letters in the correct order. So my question is how would one make something like that ? I've searched and haven't found anything.
Step 1. Work out how to make the game.
Step 2. $$anonymous$$ake the game.
You can't really just ask how to make an entire game on here and expect anyone to actually help you. There's enough helpful information on the first page of a search alone to give you a starting point though.
I was just asking if someone who has an idea how to make it to tell me in general. I don't expect anyone to tell me exactly how to make the entire game.
Answer by srylain · Mar 27, 2016 at 09:52 AM
Create a class (or struct) that contains all of the data you'd need for each puzzle. You'd want the image name and path (for easy loading), the letters that will show up that the player can choose (or you can randomize those), and the correct letters (which you'll use to determine if the player pressed the right letter).
Then create a list of them, and when it comes time to display one choose one at random.
Thank you. Also, do you know any tutorial about making a game like this ?
No, but it wouldn't be hard. You just need to set up a scene with some quads that hold the sprites for your letters and pictures, and then just transition into another picture and set of letters.
Answer by Kutiman · Mar 27, 2016 at 08:18 PM
Shouldn't be too hard. Start by having all the words data. You only need to make a list/array that contains all the words (you can easily assign a picture to each word later). using the String functions: Unity String Docs have some game object (i.e. controller, manager) that picks a word from the list and does the following: 1. counts the letters, save it to a variable. 2. create "Empty blockes" objects which will receive the letter blocks. Keep in a array for easy access and to know their order. 3. create "letter blocks" objects, according to the letters that are in the word. Make these moveable by mouse or touch. When placed near a block. Lock them together. 4. when all "empty blocks" are full with letters (have for each one a variable with the letter in it), check if the word created is the same as the original. 5. celebrate/be bummed out.
obviously there is a little more to it than this, but if you work with the string docs and put it all in numbered lists, you should be on your way. Feel free to ask details about each process.