Level-Complete Player Ratings

Get help using Construct 2

Post » Tue Jan 31, 2012 5:55 pm

I'm trying to implement a level-complete rating system where the player get's a certain amount of stars depending on the final score...

In Actionscript I'd have written something along the lines of:

If Score > 100, then show Star1
If Score > 200, then show Star2...

(hopefully you get the idea)

How can I do this in Construct2?
B
5
Posts: 12
Reputation: 551

Post » Tue Jan 31, 2012 6:43 pm

You answered your own question.

Actionscript and C2's event system in my experience is practically the same.

You would have a global var called Score,

Then add the event:
system.compare variable(Score > 100)
     -> Star1.setVisible(Visible)

system.compare variable(Score > 200)
     -> Star1.setVisible(Visible)
     -> Star2.setVisible(Visible)

system.compare variable(Score > 100)
     -> Star1.setVisible(Visible)
     -> Star2.setVisible(Visible)
     -> Star3.setVisible(Visible)

Something like that should get you going
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Tue Jan 31, 2012 7:38 pm

Ah, thanks to a fellow Steve Jobs victim :)
B
5
Posts: 12
Reputation: 551


Return to How do I....?

Who is online

Users browsing this forum: DiabloOvermind, spacedoubt and 3 guests