How do I

Get help using Construct 2

Post » Sun Feb 07, 2016 2:28 am

Hi, I'm having problems trying to keep the score and the lives of my character created. Everytime the stages chances the score of my character goes back to zero and gain maximum lives. I'd like to know what am I doing wrong. Glad if someone help me.
B
3
Posts: 7
Reputation: 189

Post » Sun Feb 07, 2016 3:00 am

You could make lives and score global variables instead of instanve variables.
B
33
S
8
G
2
Posts: 100
Reputation: 2,635

Post » Sun Feb 07, 2016 3:07 am

I use global variable, I do not know about programming to keep score and lives when layout change.
Forgive my English, I am Brazilian use Google translator.
B
3
Posts: 7
Reputation: 189

Post » Sun Feb 07, 2016 2:50 pm

Anyone? a little help?
B
3
Posts: 7
Reputation: 189

Post » Sun Feb 07, 2016 2:55 pm

You would get a much better response if you could post your .capx, otherwise all we can do is keep guessing.

Are you using 'System - Reset Global variables' when changing Layout?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,386
Reputation: 58,454

Post » Sun Feb 07, 2016 2:59 pm

You could also start by posting your Construct 2 file so we can see what you are doing wrong so we can help.
B
14
S
1
Posts: 65
Reputation: 732

Post » Sun Feb 07, 2016 3:39 pm

Message: Marcos Faro can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Follows the file,
I will be very happy if someone help me.
As the character pass through the door and move to the second layout, maintain the lives and points.
Greetings everyone

https://www.dropbox.com/s/lio3brs1wixtzku/farinhogame.capx?dl=0
Last edited by Marcos Faro on Sun Feb 07, 2016 3:53 pm, edited 2 times in total.
B
3
Posts: 7
Reputation: 189

Post » Sun Feb 07, 2016 3:46 pm

@Marcos Faro

The file you have attached is not correct.

You need to save the file as a single .capx first using 'File/Save as single file'. This creates a .capx file. Provide the dropbox link for this.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,386
Reputation: 58,454

Post » Sun Feb 07, 2016 3:52 pm

Message: Marcos Faro can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
sorry my fault, now follows the correct link:

https://www.dropbox.com/s/lio3brs1wixtzku/farinhogame.capx?dl=0
B
3
Posts: 7
Reputation: 189

Post » Mon Feb 08, 2016 11:36 am

Anyone? a little help?
B
3
Posts: 7
Reputation: 189

Next

Return to How do I....?

Who is online

Users browsing this forum: evillair, Magistross, vankizzle and 10 guests