# How do I check score per level

Get help using Construct 2

### » Fri Feb 24, 2017 6:06 pm

hi again, ok so got everything going pretty well, now at levels,

so i what to do the following
when timer runs out-> check if level 1-> if level 1 , score must be greater then 1000 then win,if less, then fail
check if level 2-> if level 2 , score must be greater then 2000 then win,if less, then fail
check if level 3-> if level 3 , score must be greater then 3000 then win,if less, then fail
B
6
S
1
Posts: 17
Reputation: 386

### » Fri Feb 24, 2017 6:24 pm

varons666 wrote:hi again, ok so got everything going pretty well, now at levels,

so i what to do the following
when timer runs out-> check if level 1-> if level 1 , score must be greater then 1000 then win,if less, then fail
check if level 2-> if level 2 , score must be greater then 2000 then win,if less, then fail
check if level 3-> if level 3 , score must be greater then 3000 then win,if less, then fail

do you know how to do a basic score?
B
43
S
22
G
13
Posts: 351
Reputation: 11,477

### » Fri Feb 24, 2017 6:27 pm

you basically have the timer as a variable im guessing you know how to do a timer then you compare the variable and then if its > than 1000 as you said you set level 1 score to 1 and then if you have another event comparing level 1 score if its >0 set win sprite to visible
B
43
S
22
G
13
Posts: 351
Reputation: 11,477

### » Fri Feb 24, 2017 6:27 pm

or you could use a function
B
43
S
22
G
13
Posts: 351
Reputation: 11,477

### » Sat Feb 25, 2017 6:02 am

i have the basic scoring working fine but i want be be able to check the score dependant on the level the user is playing... any link i can read up on using function for my needs?
B
6
S
1
Posts: 17
Reputation: 386

### » Sat Feb 25, 2017 7:30 am

thanx all, im sorted now, used nested if else statement
B
6
S
1
Posts: 17
Reputation: 386