How do I fix my collision problems

Get help using Construct 2

Post » Wed Apr 05, 2017 5:10 pm

For some reason my bullets aren't registering hits against enemies 100 percent of the time.

I have given my enemy a hit box at its front so I can determine blood splatter directions.
When I was just using the enemy collision I had no problems but now t has the separate collision box I am just getting problems.

Any help would be great :D

https://drive.google.com/file/d/0B-CJG6cEnj-6RVFZa0pJaUx1d0E/view?usp=sharing
B
5
Posts: 3
Reputation: 231

Post » Wed Apr 05, 2017 5:36 pm

oxroad wrote:For some reason my bullets aren't registering hits against enemies 100 percent of the time.

I have given my enemy a hit box at its front so I can determine blood splatter directions.
When I was just using the enemy collision I had no problems but now t has the separate collision box I am just getting problems.

Any help would be great :D

https://drive.google.com/file/d/0B-CJG6cEnj-6RVFZa0pJaUx1d0E/view?usp=sharing


It looks like you have the bullets travelling at 400 pixels per second, which is roughly 6/7 pixels per tick.

The frontenemy hitbox is only 2 pixels wide which obviously means the bullet can sometimes travel further than the hitbox in 1 tick, therefore not registering as a hit.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,554
Reputation: 60,452

Post » Wed Apr 05, 2017 6:18 pm

Thank you!!! I changed the bullet speed and increased the thickness and its working great now!
B
5
Posts: 3
Reputation: 231


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], WesleyDeveloper9 and 5 guests