How do I troubleshoot quirky score/lives issue?

Just started using Construct 2? Post your questions here

Post » Thu Jan 05, 2017 6:27 pm

I have a simple game: 3 different sprites are spawned and travel off the screen in different directions. Clicking (or touching) the sprite will add 10 points to the global variable "score," while the sprite going "outside layout" will subtract one life from the global variable "lives."

I'm finding as I test-play the game that both global variables will change value in a way that doesn't reflect what is happening on the screen. For example, 2 sprites may travel off the screen at the same time, but "lives" only gets reduced once. Or I might have scored 50 points from clicking on 5 sprites but my successful click on a 6th sprite takes the score back to 30. I'm not sure how either one of these scenarios is even possible when the events and actions are set properly. Or am I missing something?

(I was hoping to add a picture of my event sheet, but am a newbie and don't see how to do that)
B
5
Posts: 5
Reputation: 235

Post » Fri Jan 06, 2017 1:20 am

To get help for troubleshooting, people will commonly upload their project as a .capx to a file host like dropbox.

It will be difficult to help you with your problem with that description alone, but if we can see the event sheet it will be much clearer.
Mistakes were made.
B
49
S
24
G
107
Posts: 1,581
Reputation: 60,303

Post » Wed Jan 18, 2017 10:07 pm

Post the .capx somewhere or an image of your events and then paste the link here but put spaces in it... h t t p : \ etc till it works.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
65
S
17
G
8
Posts: 635
Reputation: 9,331


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests