[SOLVED]Bullet Issues/Bouncing

Get help using Construct 2

Post » Wed Mar 20, 2013 9:49 am

Hey everyone!

I followed the "Breakout Clone" tutorial on this site and everything was perfect. For the past few weeks I have been expanding on that tutorial and adding new features etc.

Today I noticed that the "ThroughBall" was not going through the bricks anymore. Instead it was just bouncing back like any regular ball. (This used to work).

I have gone through all of my code, disabled almost everything I can while leaving the game still testable, and went through the tutorial again and saw that my events matched up perfectly...

What events are you guys using for continuous motion after a collision?

Here's a screen of what I am working with.

Tekniko2013-03-20 19:13:29
B
50
S
14
G
12
Posts: 813
Reputation: 16,764

Post » Wed Mar 20, 2013 11:21 am

Check your ball bullet settings ;
Bounce from solid should be set to no

Cheers...Whiteclaws2013-03-20 11:22:55
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Wed Mar 20, 2013 11:58 am

That did nothing except make my ball go through everything.
B
50
S
14
G
12
Posts: 813
Reputation: 16,764

Post » Wed Mar 20, 2013 12:57 pm

Add 180 to action where you set the ball direction on collision.
B
24
S
8
G
7
Posts: 756
Reputation: 7,202

Post » Wed Mar 20, 2013 6:42 pm

Good attempt but that only sort of works. I am still getting issues with collisions.

The original code I posted above actually works. I think something else in my game is causing a bug with it.
B
50
S
14
G
12
Posts: 813
Reputation: 16,764

Post » Wed Mar 20, 2013 7:13 pm

Okay, I have fixed it. The Every Tick event that I was using was going through too many events I guess. I setup a new Every Tick, by its self, for the direction variable and now it all works! :)
B
50
S
14
G
12
Posts: 813
Reputation: 16,764


Return to How do I....?

Who is online

Users browsing this forum: Nifl, Yahoo [Bot] and 22 guests