Bullet, Solid and Speed

Bugs will be moved here once resolved.

Post » Mon Mar 10, 2014 12:55 pm

Attach a Capx
https://dl.dropboxusercontent.com/u/762 ... Solid.capx

Steps to Reproduce Bug
  • 1. Add two object sprites (Border and Bullet)
  • 2. Add Bullet Behaviour to the sprite "Bullet"
  • 3. Add Solid behavior to the sprite "Border"
  • 4. Clone "Border" with multies Angle (0, 45, 90, 270) around the sprite "Bullet"
  • 5. Set "Boundce off solids" of Bullet is "Yes"
  • 6. Set "Speed" of Bullet is "2000"
  • 7. Run Layout or Debug

Observed Result
The bullet will through out the solid and ignore the "Boundce off solid" condition.It will appear when speed more than "1100".
When set speed "2000", you can see it clearly. In chrome mobile device speed "400" was happend.

Expected Result
The bullet can't through out "bolder" as like solid behavior.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Windows 8.1

Construct 2 Version ID
Construct 2 r163
Posts: 2
Reputation: 179

Post » Mon Mar 10, 2014 1:29 pm

This may not be a bug but a case of realistic expectations.

I seem to remember Ashley saying that if the speed is too great, and the objects it is meant to bounce off are too thin, then because it is checking for collisions 60 times every second, then the bullet could pass through the object instead of bouncing off.

So by my calculations (which could easily be in error) - if your bullet is traveling 2000px per sec, then it can travel 33 px in one tick. Considering the object it's meant to bounce off of is only 20 px wide, then it may jump straight over the object in one tick and not collide.

The answer was to increase the size of the object it collides with (even using an invisible collision object, for instance), or decrease the bullet speed.

I may be wrong, but that's how I remember it. Ashley is very busy at the mo, but I'm sure he'll see this eventually and correct me if necessary.
If your vision so exceeds your ability, then look to something closer.
Posts: 5,387
Reputation: 58,456

Post » Mon Mar 10, 2014 2:34 pm

Thanks for you reply soon, zenox98 . I was test and like you said, you must have wonderful memory. Now I can continue my game. Thanks you again ! :))
Posts: 2
Reputation: 179

Post » Wed Mar 12, 2014 8:28 pm

Closing as not a bug. At high enough speeds, objects will step far enough per tick to jump obstacles.
Scirra Founder
Posts: 24,371
Reputation: 193,772

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests