How do I Set Difficulty For My Levels?

Get help using Construct 2

Post » Thu Jun 02, 2016 8:44 am

Hi.

I have 50 Levels in my game.
I check the Level_01_Difficulty Variable for set Difficulty of current level.

if it is 0 , player play in Normal mode and if it is 1 , hard !

in menu when player win level with Normal Mode , game allow to Hard difficulty.

when the player win in Level01 i set Level_01_Difficulty Variable to 1 and if the player lose nothing change.

i don't have problem with that but ......

**** if player win in Normal mode and i set Level_01_Difficulty Variable to 1 and player , play the level in Hard, maybe the player want to play the normal mode later. but Level_01_Difficulty Variable is 1 and on start of layout level be on hard difficulty.

i confuse with that !

and also how i event for menu for 50 levels?
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Thu Jun 02, 2016 12:38 pm

Up!
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Thu Jun 02, 2016 2:37 pm

any idea please? i need some help!
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Thu Jun 02, 2016 4:00 pm

just make a menu where the player can change it?
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Fri Jun 03, 2016 7:02 am

Best way would be to have a Global Variable called LevelDifficulty and make it either a number/text (if you want to have 3+ degrees of difficulty) or a Boolean (if it will just be two). Then create conditions based around what the variable is.

Example :
If LevelDifficulty="Easy" >>> Heath=3
>>> EnemyHealth=1
If LevelDifficulty="Medium" >>> Heath=2
>>> EnemyHealth=2
If LevelDifficulty="Hard" >>> Heath=1
>>> EnemyHealth=3
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,701

Post » Fri Jun 03, 2016 6:23 pm

hi, thank you for reply, but i know bout it, my problem is :

player in first play, can play in Easy Mode, if he win , in menu he can play hard mode, but if he lose in level01(for example), he can't play hard!
this is not my problem!

but if player win level on easy mode, and i set LevelDifficulty to hard, and he want play on easy mode, he can't , because level set for hard!
B
10
S
3
Posts: 180
Reputation: 1,212


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 15 guests