How do I check score per level

Get help using Construct 2

Post » 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

Post » 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?
Image
B
20
S
10
G
10
Posts: 229
Reputation: 7,624

Post » 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
Image
B
20
S
10
G
10
Posts: 229
Reputation: 7,624

Post » Fri Feb 24, 2017 6:27 pm

or you could use a function
Image
B
20
S
10
G
10
Posts: 229
Reputation: 7,624

Post » 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

Post » 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


Return to How do I....?

Who is online

Users browsing this forum: ivanski1983 and 13 guests