How do I Save this game ?

Get help using Construct 2

Post » Wed Jun 04, 2014 6:07 pm

At lvl 1-1 if you try to pick up the upper heart, all three hearts will dissapear at once.
Picking and destroying the oldest heart (lowest UID number) will teleport the newer hearts to the oldest heart position.
At your event sheet "Level Sheet" line 14 is causing this issue. Simply delete that line will solve your problem. Cheers! :D

Your game is looking great. Keep it up :D
It's time for me to return the favor :)
B
32
S
9
G
9
Posts: 132
Reputation: 5,370

Post » Wed Jun 04, 2014 6:48 pm

You are awesome :D Really thank you for your taking your time and helping me really appreciate it .
I checked that video you've posting ,I can save hearts levels and other stuff too now but the problem is repeating levels its acting weird hearts counted again and if i clear lvl 1-1 again lvl 1-2 hearts being cleared !! and totalstar(total hearts ) getting counted again . I know this is too much but can you please look into codes and find out whats wrong there ?
B
3
Posts: 9
Reputation: 193

Post » Wed Jun 04, 2014 7:28 pm

Could you upload your latest capx?
I'll try to take a look into it tomorrow when I have time
It's time for me to return the favor :)
B
32
S
9
G
9
Posts: 132
Reputation: 5,370

Post » Wed Jun 04, 2014 9:06 pm

Thank you :)
Last edited by Behnam on Thu Jun 05, 2014 7:43 pm, edited 1 time in total.
B
3
Posts: 9
Reputation: 193

Post » Thu Jun 05, 2014 8:51 am

Take a look at the event sheet "Scoresheet" line 25.
This line does two things
Action 1) Keep saying the next level has value 10 (zero hearts score/unlocked)
Action 2) Set the score (ammount of collected hearts) for your current level

You need to seperate these two actions with a proper condition by checking the score of the levels.
At 1)
Check if the next level have a value less than 10 in the array. If yes, action 1) will be triggered
At 2)
Compare "current collected hearts+10" value with the stored value of the current level. If "current collected hearts+10" is bigger than the stored value, Action 2 will be triggered.

Something similar has to be done aswell for line 26.
Good luck :)
-----------
I feel like sherlock holmes now :lol:
It's time for me to return the favor :)
B
32
S
9
G
9
Posts: 132
Reputation: 5,370

Post » Thu Jun 05, 2014 2:51 pm

ikke2902 wrote:Take a look at the event sheet "Scoresheet" line 25.
This line does two things
Action 1) Keep saying the next level has value 10 (zero hearts score/unlocked)
Action 2) Set the score (ammount of collected hearts) for your current level

You need to seperate these two actions with a proper condition by checking the score of the levels.
At 1)
Check if the next level have a value less than 10 in the array. If yes, action 1) will be triggered
At 2)
Compare "current collected hearts+10" value with the stored value of the current level. If "current collected hearts+10" is bigger than the stored value, Action 2 will be triggered.

Something similar has to be done aswell for line 26.
Good luck :)
-----------
I feel like sherlock holmes now :lol:


Thank you again :D I will try this .
B
3
Posts: 9
Reputation: 193

Previous

Return to How do I....?

Who is online

Users browsing this forum: MadSpy and 21 guests