QUestion as Obstacles

Updated on May 11, 2017 in [A] 2D
Share on Facebook0Tweet about this on Twitter0Share on Google+0Share on Reddit0
4 on May 10, 2017

Hello, I’m pretty new to unity. I want to use questions as obstacles in a 2d game design. Currently I have my character moving with the arrow keys but I would like to make him approach some questions and answer them before proceeding on his way. How do I go about this?

  • Liked by
Reply
3 on May 11, 2017

Maybe the question could be a physical object and when he approaches the question the would be four (or how many you want) possible answers and he has to click on the correct one. Or an input field where he can type the answer (though this could be harder since he could write anything).

Here’s a simple representation: 

But this could be done many other ways.

on May 11, 2017

Thanks for the reply @LeonLaci but how do I embed this into the game an  give me an idea of doing this as ur idea is basically what I have being considering just that the questions and answers would be on a card.

Helpful
on May 11, 2017

you could have a 2d colider(box colider 2d) appear when you ask the question and disable it when the player gives an answer/gets it right also your questions could be about the last bit of the level/game

on May 11, 2017

Please can you give me an example of the coding

Show more replies
  • Liked by
Reply
Cancel