Physics and Scoring Problem

Get help using Construct 2

Post » Mon Mar 19, 2012 11:03 am

For each block, dropped onto another, 200 points are added, the blocks contain the Physics behavior.

Unfortunately, every time a block drops onto another, it bounces, which adds more points than it should be.

Any ideas on how I can correct this?
B
11
S
2
Posts: 127
Reputation: 1,532

Post » Mon Mar 19, 2012 11:06 am

You may play with physics properties. For example, set Elasticity to 0 and Friction to 1.
B
228
S
6
G
8
Posts: 86
Reputation: 12,295

Post » Mon Mar 19, 2012 11:09 am

Nope. Doesn't work, already had similar settings, and was only .5 out. Also the platform drops, when the platform drops, the blocks "bump" and then once again, adding scores.
B
11
S
2
Posts: 127
Reputation: 1,532

Post » Mon Mar 19, 2012 12:28 pm

You could add a short timer that while >0 ignores scoring.

So if it hits once, the second or third hits won't register until the timer has counted down to 0 again and triggerd scoring enabled.





Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Mon Mar 19, 2012 12:57 pm

How about adding an instance boolean to the blocks, and set it to true once the blocks collide. This will ensure the points are only given once.

Example .capx
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Mon Mar 19, 2012 1:13 pm

[QUOTE=Nimtrix] How about adding an instance boolean to the blocks, and set it to true once the blocks collide. This will ensure the points are only given once.

Example .capx[/QUOTE]

Thank you, Thank You, Thank You!!! It works!!
B
11
S
2
Posts: 127
Reputation: 1,532


Return to How do I....?

Who is online

Users browsing this forum: austinblackbelt and 32 guests