Hi! I want to make a color memory puzzle, when you take turns seeing 4 different colors on the monitor, and then you have to enter their sequence correct. How can i do this? I’ve tried to do it myself, but its to hard for me.
Something like “Simon says”?
yes
but 3D
An idea could be:
- Create an array that holds a ref of each tile.
- In a new array: save a ref of tiles in the sequence that should be activated.
- In another array: save a ref of each tile in the order player triggers them.
- Compare both arrays in order:
- If ==, continue checking next index, else player failed.
1 Like
Can you pls pls show me on screenshot?
in details
i figured it out
2 Likes
Awesome! Do share.
1 Like
I’ve done this with my own idea
But that’s not fair…
Even more reasons to share then! Where’s the pride?
Making a lot of puzzles in BP, I suddenly realized one day, you don’t need to write code to check the answer.
Just make an array which contains the answer. As the player moves or play, fill a second array.
When you want to check, just compare the arrays with an =, no need for any loops.
3 Likes
Awesome! Noted.