How do I count bounces off walls

Get help using Construct 2

Post » Thu Oct 09, 2014 8:26 pm

So I'm making a game, in which it is required to get a ball to a certain location while trying to get there with as little as possible bounces. To do that I presumably need to measure all the times the ball bounces off the wall. (bouncing occurs through the bullet behaviour).

The problem is that I don't have a clue how I could possibly do that.. any help maybe? If anythings unclear, just ask and I'll try to explain better :)
B
12
S
1
Posts: 28
Reputation: 978

Post » Thu Oct 09, 2014 8:38 pm

Have you tried using a ball event with "On-Collision" or "Is Overlapping sprite" condition with action to add 1 to a global variable?
Use "Trigger Once" condition as well so it only adds 1 until the next detected collision/overlap.

Otherwise without a .capx is hard to see exactly what you need.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
69
S
18
G
8
Posts: 639
Reputation: 9,549

Post » Thu Oct 09, 2014 8:49 pm

omg I was thinking way too difficult, but thank you so much!
B
12
S
1
Posts: 28
Reputation: 978


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 7 guests