playMaker

Author Topic: How can I match the random positioned "correct answer" to a button?  (Read 901 times)

abysan

  • Playmaker Newbie
  • *
  • Posts: 1
Hey all,
I started to make a simple rock/paper/scissor like game, but a random twists.
This is my first software ever, I don't have any programming skill and I don't know anything about Unity, just started to build this game 5 days ago. On Discord I got some help before, so I was able to achieve lot of things, except the last key step to finish the game phase.
I got this advice on Discord to finish it, but I don't understand this at all: "u could make the cards buttons.  and give the prefab of the button, a event to send data to a manager such as transform child index. or a value given to the card on creation"

The rules: You can see 3 cards with random pictures but descending value order. Left is the most valuable, middle is less valuable and rights value is the lowest.
The second phase starting with a transition, one of the cards removed and two other card stay on the screen, but this time they positions random, but the value is the same as before. The player has to choose the biggest value card from memory.
If the player choosing the biggest card in the scene win, if the player choosing the lowest value card, player lose.

In the final version the half left screen is choosing the left picture, the right half is the right picture, but I don't know how can I achive to activate the correct buttons on the correct side of the screen.

Here is the video and my explaining what happening:
Could someone to help me somehow? If you have an explaining, please be clear as possible with button/action names, because I can't find the function if I can't see the button name on the screen  :(

Thank you very much,
abysan