Help With the Score of My game

Get help using Construct 2

Post » Fri Aug 22, 2014 11:30 pm

I'm a beginner in construct 2.
I've started making a game; similar as Doodle Jump but not the same, you don't jump on the plataforms; you are flying and you have to avoid to touch the plataforms, if you touch them you are dead.
Please someone yo help me with the score; I want that everytime the player avoids 1 plataform you get 1 :(20 plataforms ; your score: 20) . It's impossible for me to make this, I've tried a few things but nothing yet.
Thankyou
B
8
Posts: 22
Reputation: 356

Post » Sat Aug 23, 2014 9:14 am

you could have a coin that they have to collect so that would add 1 to the score ???
I JUST ENJOY MAKING GAMES :)
B
5
S
1
Posts: 23
Reputation: 1,403

Post » Sat Aug 23, 2014 10:45 am

There are many ways to do it, for example, add invisible sprites near the platforms, so if player avoids the platform he will collide with invisible sprite, then add event - Player > On Collision with Invisible sprite > add 1 to Score variable.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Sat Aug 23, 2014 4:25 pm

How can I do: for every 100 (something of distance ) add 1 to Score? instead of 1 for every plataform; 1 for each 100 or 50 (something)
B
8
Posts: 22
Reputation: 356

Post » Sat Aug 23, 2014 6:12 pm

How I did it in my flappy bird clone:
I add point to my score everytime I pass the bottom pipe

BottomPip: Compare X Less than or equal Broom.X (my x co-ordinate)

if this is unclear, I can upload my capx for the clone and you can see what's going on.
B
37
S
11
G
4
Posts: 95
Reputation: 4,235

Post » Sun Aug 24, 2014 12:21 am

AYALA6 wrote:How can I do: for every 100 (something of distance ) add 1 to Score? instead of 1 for every plataform; 1 for each 100 or 50 (something)

If you want to add something that adds 1 to a value every 100 points of other value then make something like that - add "a" value(that will set to 100, 200 and more) and "b" value (that will set to 1 when "a" equals 100 and 2 when 200 etc.), add event: every tick (or when condition that changes "a" triggers) set value "b" to (int(a/100)), or (floor(a/100)). The same thing if you want to add 1 to "b" every 50 points of "a" > set value "b" to (int(a/50)).
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Sun Aug 24, 2014 12:35 am

This is the example capx, works how you want i guess.
You do not have the required permissions to view the files attached to this post.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Sun Aug 24, 2014 9:32 am

thank you again sisyphun and yes please Drewford can you upload your capx. file? thankyou
B
8
Posts: 22
Reputation: 356


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests