Collision won't work with low fps

Get help using Construct 2

Post » Sun Aug 18, 2013 7:30 pm

Is there a way to prevent collision from not working properly with bullets and other movable objects at low fps (~20-30)?

When I shoot a bullet @ 60 fps, it always hits the target, but if the fps is low, it just passes right through.ome6a17172013-08-18 20:02:30
B
43
S
12
G
1
Posts: 545
Reputation: 4,246

Post » Mon Jan 19, 2015 12:21 pm

i have the same problem with detecting colision on enemies when jumping on them...on my desktop everything is working as it should. however on mobile, sometimes my character gets hurt when jumping on enemy. This is extremly annoying and altough i plan to use wkwebview in my game, i would expect the collisions to work around 20 fps ! Did you found any solution??
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Mon Jan 19, 2015 7:00 pm

@marcel1980 - it's not ideal, but the best way I could figure out was to increase the collision size to make sure it would overlap. I just made the bullet longer (not the image, though, just the collision box)
B
43
S
12
G
1
Posts: 545
Reputation: 4,246


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests