I thought that maxGuessesAllowed was a good opportunity to add the element of difficulty to the game. The “Game” level was divided into “Game_Easy” and “Game_Normal”, with maxGuessesAllowed changing to a predetermined max.
http://gamebucket.io/game/676933f3-250e-474a-bd39-2fb60b61393f
Enjoy!
2 Likes
Cool idea! I may try and do that as well.
On a side note… I can’t believe your game called me a pleb!!!
Thom
1 Like
Hey. Ive been struggling with this aspect. I was about to write a post, but I found you had this exact element in your game that I would like to add to mine.
Would you be willing to share how that was added into the code correctly?
I’d love to! Here’s the code:
void StartGame () {
max = 1000;
min = 1;
if (Application.loadedLevelName == "Game_Easy"){
maxGuessesAllowed = 5;
}
else if (Application.loadedLevelName == "Game_Normal"){
maxGuessesAllowed = 10;
}
NextGuess();
}
It just meant duplicating the “Game” scene and dividing it into Easy and Normal with respect to maxGuessesAllowed
Ah, I had thought that was an option, but then i felt like maybe it was too easy of a solution, lol. (I am so new at this it hurts haha)
Do you know if it is possible to have it just change the maxGuessesAllowed into a variable, and then depending which button they press (lets say easy/ medium/ hard) it would change the maxGuess respectively to the difficulty setting? I kept trying to do something like:
int maxGuessesAllowed = levelDifficulty;
(and then having levelDifficulty be connected to something like
void Easy();
{
maxGuessesAllowed = 3;
NextGuess;
}
Note: I did try something like this and it didnt work, so I wasn’t sure if its because what I’m looking to do just cannot be done in this way, or if I am wording it all clown-like(poorly)
Thanks, I will give this method a go as well 