Problems to obtain the specific result

Get help using Construct 2

Post » Thu Nov 21, 2013 4:38 pm

I created a game of addition. The user has to add multiple objects with numbers to make the result equal to that shown in a panel. Each time the sum beats, objects are destroyed on the screen. Everything is OK until reach the last 3 objects on the screen, when the result must be the sum of the remaining objects.

I used the code bellow (but not worked):

System> objects <or = 3
Pick all objects
is on-screen objects
System> For each object: System> add to objetos.AnimationFrame to numPanel

How can I fix it? Thanks.
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,058

Post » Fri Nov 22, 2013 4:06 pm

No one to help?
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,058

Post » Fri Nov 22, 2013 4:16 pm

Wrong subforum

Anyway, which result does this code give back (which value does numpanel have and which numbers are present)?
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Fri Nov 22, 2013 4:17 pm

RenatoB, do you have a capx you can share?
Don't see the fnords and they won't eat you!
B
79
S
17
G
12
Posts: 323
Reputation: 11,850

Post » Fri Nov 22, 2013 7:02 pm

@mindfaQ: Sorry for my mistake. With regards to the game, the code typically randomly chooses an amount of objects (1 to 5), sum the corresponding values ??and then displays the result in the panel. The player can choose these same objects or others with different values ??but the sum result must have the same that appears in the panel. When the sum is OK, clicked the objects are destroyed. The problem happens in the end to catch the value of the remaining objects (03 or less) and show this value in panel for the player click in these objects for to go to the next level.

@Wastrel: Unfortunately I can't provide the file because it is already the final project with images and sound files. Sorry for that.RenatoB2013-11-22 19:14:01
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,058

Post » Fri Nov 22, 2013 7:15 pm

Yeah I've understood that, but was asking which value the panel shows when you are at your last 1-3 pieces.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Fri Nov 22, 2013 7:50 pm

The total of the values ??corresponding of the remaining objects.RenatoB2013-11-22 19:51:31
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,058

Post » Sat Nov 23, 2013 3:25 pm

Maybe I wasn't clear befor, so I decided to post an image of the code that determines what is displayed in the result panel (sorteio textfield).

RenatoB2013-11-23 16:03:13
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,058

Post » Sun Nov 24, 2013 11:20 am

I was asking which number then panel is showing when you are at your last pieces and which numbers the pieces carry...mindfaQ2013-11-24 11:20:52
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Sun Nov 24, 2013 1:33 pm

Each object has a number 1-9. For example, if 4 objects left over at the end, the first with the number 5, the other two with the number 1 and the last with the number 8, the value that should appear in the panel shall be the sum of the value of these four objects: 15. Thus the player will be able to destroy all the objects and complete the level.RenatoB2013-11-24 13:41:58
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,058

Next

Return to How do I....?

Who is online

Users browsing this forum: dand, mageekm, oosyrag and 28 guests