Fast moving objects collision problems.

Get help using Construct 2

Post » Fri Oct 28, 2016 9:58 am

In my game I have a crossbow type weapon that fires bolts at high speeds that are pinned onto enemies when they collide. They travel at about 3000 pixels/second, any slower and it doesn't look that good. I've tried making the collision polygons larger than the actual bolt. This however still doesn't work great as either the bolt collides and is pinned before or after it looks like it actually hits the enemy. Or if the frame rate is low the bolt will move jerkily through the air and even pass through the enemy all together. Is there a way to do like a delta time independence but with movement? Or is there any other solution to this problem?
B
14
S
3
Posts: 55
Reputation: 912

Post » Fri Oct 28, 2016 2:24 pm

If I were in you i would try to make several sprites that act like multiple collision detectors in that undected range of 3000 pixels.
Move them along with the arrow and when at least one of them collides with an item, stop the arrow and set its coordinates to the one of the collision detector
B
9
S
4
G
1
Posts: 32
Reputation: 871


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, guannstar, marcinkowski, Shenkai the ssj, Yahoo [Bot] and 13 guests