Hello and Goodmorning. I want to create a hint system for my game, but as a novice, I’m having some trouble figuring out how to do it. Here are a couple of ideas I had for the hint system:
Change the button text color of the correct answer randomly, one by one.
Reveal the correct answer in the answer input tab, one letter at a time, similar to the hint system in games like ‘4 Pics 1 Word.’
This game is primarily designed for grade 2 and 3 students as part of my research project. I’m unsure whether I should include a hint button to provide a bit of a challenge for them. If I do include it, I need help figuring out how to implement the ideas listed above. Any assistance would be greatly appreciated. Thank you in advance for your help.
That isn’t quite the functionality I was expecting, to be honest. I want the students to interact with the hint button so that each time they press it, a letter of the correct answer is revealed sequentially.
Example: “DOG”
Scenario: When the students hit the button, the first press will show “D,” the second press will show “O,” and the third press will show “G.”
Here we have the variable holding the correct answer, the hint button and the textbox “AnswerLabel”, which shows the answer. Also the counter “Hint_Letters_Given” is needed, to keep track how many letters are revealed already.
Every time when the Hint button is clicked, it writes first one, then two etc. letters of the correct answer to AnswerLabel textbox.
Couple of weeks ago in Other Actions → Variables there were options for modifying global, scene and object variables, and under them there were options for modifying text, number or boolean variables.
But now it’s so much simpler! Just select “Change variable value”.
In my previous answer the screenshot was taken from the GDevelop which had not been updated to the current version, that’s why you can see the old-looking code.