Scoring issue

Just started using Construct 2? Post your questions here

Post » Mon Dec 14, 2015 8:11 pm

Hello,

I'm currently working on my first C2 game after a huge period learning JS, but I have some issues with most of complex events...
My first game is a "Flappy bird" like, so I took the Flappy game beginner guide to start with the engine. Unfortunately, I don't know how can I set the score. My events don't do what I would like...

the score variable is a global one:

Image

Can someone help me ? :)
B
3
Posts: 2
Reputation: 179

Post » Mon Dec 14, 2015 8:34 pm

"Is scored" can never be true as you only set it if it is true! Just move the 'Set text to score' up to event 20.
ImageImageImage
B
71
S
22
G
240
Posts: 3,734
Reputation: 133,994

Post » Thu Dec 17, 2015 12:26 am

Thanks you for the help. Unfortunately if i put 'set to score ' up to the event 20, the score is running but running like the demo of a the running game. What I would like is to set the score to +1 as soon as the player pass one obstacle
B
3
Posts: 2
Reputation: 179

Post » Wed Dec 23, 2015 11:06 am

@sidji I'm not sure what you meant with that last post, but if you set the 'set text to' to event 20, and add a trigger once condition, it should solve it, shouldn't it? Also that'll make it a bit more stable, since if the character is inside the same x-coordinate for a litte while, it'll add 1 score every tick. Basically repeating the whole event
Website Twitter Indie Developer
B
20
S
6
G
4
Posts: 206
Reputation: 2,954


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests