Creating time-based scores

Hi everyone. In my game when one cube touch another cube, in this scene spawns button "Next level". But i am also want to create time-based scoreboard. My logic is:
In actor "Next level" create 3 int attributes (for example "level_1_1", "level_1_2", "level_1_3" for every level (over 60 attributes!), which contains time for 1 star, 2 stars and 3 stars. Then, in this actor, i am create rule:
if level = 1
if time > level_1_1
spawn actor "star_fun"
otherwise
spawn actor "star_sad"
end
if time > level_1_2
spawn actor "star_fun"
otherwise
spawn actor "star_sad"
end
if time > level_1_3
spawn actor "star_fun"
otherwise
spawn actor "star_sad"
end
end
But these would be a lot of code and attributes! This is only way to create time-based scores?
In actor "Next level" create 3 int attributes (for example "level_1_1", "level_1_2", "level_1_3" for every level (over 60 attributes!), which contains time for 1 star, 2 stars and 3 stars. Then, in this actor, i am create rule:
if level = 1
if time > level_1_1
spawn actor "star_fun"
otherwise
spawn actor "star_sad"
end
if time > level_1_2
spawn actor "star_fun"
otherwise
spawn actor "star_sad"
end
if time > level_1_3
spawn actor "star_fun"
otherwise
spawn actor "star_sad"
end
end
But these would be a lot of code and attributes! This is only way to create time-based scores?
Comments