bullet impact bug

Bugs will be moved here once resolved.

Post » Sun Oct 26, 2014 4:42 pm

Problem Description
my bullets impact to nothing.

Attach a Capx
superlama.capx


Observed Result
shoot the blue square side and see what happend.

Image

Affected Browsers
    all

Operating System and Service Pack
win7x64sp1

Construct 2 Version ID
184 64bit
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 2
Reputation: 177

Post » Sun Oct 26, 2014 5:55 pm

Downloaded it. Tries several things with no luck. Definitely looks like a bug.
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Sun Oct 26, 2014 8:24 pm

The bullet can be overlapping the wall by some amount when it collides depending on how fast it's going. You can't rely on it hitting the wall exactly at the edge.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Wed Oct 29, 2014 4:22 pm

Closing as not a bug. Your bullet origin is on its left edge, so you spawn the impacts at the left edge of the bullet when the right edge collided.

Note that with a speed of 900 at 60 FPS, your bullets will be travelling 15 pixels per tick. This means the collision is only accurate to 15 pixels, which is more than the width of the object. You just have to be careful to not make this obvious, e.g. with moving impacts/particle effects.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,694

Post » Sun Nov 09, 2014 11:58 pm

I would not say it is a bug, but i have the same problem with bullet behaviors. When the application can not keep the frame rate, collisions are skipped along with the frames where they should happen. C2 is the first engine where i see this happen, and this is bad! collisions should be handled before the frames are rendered, and even if the frames are discarded collisions should ALWAYS be taken into account or most games will break under slowdown (think about unexpected disk access peaks, for example)
Image
Image
Image
B
15
S
2
Posts: 48
Reputation: 1,597


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests