create score

Get help using Construct 2

Post » Wed Jan 23, 2013 8:04 pm

wanted to build a score ... for example my player has 6 stars to start and when you complete level 3, I want a screen appear the 3 stars.
I have a global variable where every time he touches the enemy, take away a star.

Any example or tutorial?
B
11
S
4
G
1
Posts: 410
Reputation: 2,752

Post » Thu Jan 24, 2013 10:13 am

I'm looking for something so
B
11
S
4
G
1
Posts: 410
Reputation: 2,752

Post » Thu Jan 24, 2013 12:38 pm

anyone?
B
11
S
4
G
1
Posts: 410
Reputation: 2,752

Post » Thu Jan 24, 2013 12:50 pm

If you have a variable where you have amount of stars, all you need to is spawn the correct amount of stars. You could so it with this sort of event:

For 0 to AmountOfStars - 1
      Create Object Star at (X+50*loopIndex, Y)

The X+50*loopIndex makes sure the stars are not spawned on top of each other, but 50 pixels apart.vee412013-01-24 12:51:13
B
24
S
8
G
7
Posts: 756
Reputation: 7,192


Return to How do I....?

Who is online

Users browsing this forum: anty21ro, Baidu [Spider], fr0z3n, LeFuji, RookieDev, TRMG and 14 guests