how make open door when the character near from door and answer question if answer correct door open else door not open
on begin overlap create a widget with the question and button for the answers. then in the widget on button clicked have a script that checks if its the right answer. if the answer is correct then you call a custom event in the door which opens the door.
a few things to note: first you will need to pass a reference of the door to the widget when it is created. another thing you will need to figure out is how you want to handle if the player gets the question wrong (will they need to overlap again or will it go right back to the same question, etc).
you were pretty vague with your question so i left it very general as well. theres a ton of tutorials out there on how to do the steps i mentioned so do some research try to make it work and report back with any issues you run into.
thank you Iam need tutorial such as video or picture to understood process because Iam beginner in designing of game can help me?
theres no tutorial i know of for your specific issue. you need to break down the issue into smaller pieces. so begin with learning how to make a door (heres a link to a tutorial). then progress to making a general widget (theres a tutorial out there im sure). then finally progress to making the question widget (no tutorial on this but look for a question about quiz games on the answerhub. i made a responses to similar questions before).
overall if you know the basics this is a simple task to complete so the best way to go is to take a stab at it and see how it goes.
the script you need for the door is something like on overlap → create widget → set variable in widget (reference to door actor) ->add to view port. then you will also need a custom event open door → timeline ->set actor rotation.
in the widget you will have a script like on button clicked → get button text → button text = answer → branch → if true call open door event in door actor.
thank you so mach
thank you so so so much