Bullet in slow framerate not collision

Discussion and feedback on Construct 2

Post » Sat Jan 24, 2015 3:03 pm

Hi!!!

I am a problem with a bullet in a game.

The bullet goes very fast to create the feeling of shooting. But the problem is in device with low framerate, the bullet is just 2 frames , and fails to impact with objects because not draw the collision.

Is there any solution to force the bullet draw all frames?

Thanks
B
4
S
1
Posts: 25
Reputation: 400

Post » Sat Jan 24, 2015 4:16 pm

Hi !

Have a look at this thread, it might be of some help : viewtopic.php?f=147&t=122932&p=875413#p875413

The problem you're facing is called tunneling, and it's a "non-issue" (as in, it can be a problem, but it works as designed, and it's not solved by forcing objects to update their data more often)

It's a reoccuring topic, but you might have specific questions !
Image
Game Producer & Independent Developer - http://raphaelgervaise.com
B
24
S
9
Posts: 237
Reputation: 2,232

Post » Sat Jan 24, 2015 5:58 pm

If you really have to make some small and very fast objects, try "is overlaping -name of the other object, trigger once while true > destroy -name of your fast object-" instead of the classic collision event.
it solved many of my problems for people playing with a bad framerate.
Image | @AurelRegard on twitter
B
19
S
6
G
1
Posts: 307
Reputation: 2,500

Post » Sat Jan 24, 2015 6:02 pm

Also consider expanding the hitboxes of "fast" objects (relative to their size) ; you might not get accurate collisions, but you'll get collisions. It's good enough for hitchecks / damage, etc. but not necessary rebounds, localised damage (hard to detect front/back, etc.)
Image
Game Producer & Independent Developer - http://raphaelgervaise.com
B
24
S
9
Posts: 237
Reputation: 2,232

Post » Sat Jan 24, 2015 6:22 pm

Yes, @Refeuh is giving the most useful advice here. Apply this kind of hitboxes to your bullets / shots:

Image
Image | @AurelRegard on twitter
B
19
S
6
G
1
Posts: 307
Reputation: 2,500

Post » Sat Jan 24, 2015 7:24 pm

Thanks people!!!

I try it!!
B
4
S
1
Posts: 25
Reputation: 400


Return to Construct 2 General

Who is online

Users browsing this forum: muftyk, Yahoo [Bot] and 7 guests