Suggestion: Rotate without affecting collision box

Discussion and feedback on Construct 2

Post » Fri May 10, 2013 4:54 pm

I think it would be a nice feature to have a option to disable rotating collision boxes when using the rotate behavior. On mobile, having these rotating collision causes massive lag spikes whenever a collision is detected. Just an idea!
B
37
S
11
G
6
Posts: 962
Reputation: 11,254

Post » Fri May 10, 2013 5:51 pm

Citation needed! Collision checks should be very quick, even on mobile.

If you want to test for collisions differently to the object's own collision mask, use an invisible sprite to check collisions with instead.
Scirra Founder
B
383
S
225
G
86
Posts: 24,119
Reputation: 190,546

Post » Fri May 10, 2013 8:26 pm

@Ashley It'll be pretty hard to reproduce unless you get my game on CocoonJS, maybe you'd like to look into it? It gets worse when the collision masks have slopes, and worse when there are more polygons.

I've considered that, but then I'll be creating twice as many sprites, the rotating collision enabled sprites are enemies!
B
37
S
11
G
6
Posts: 962
Reputation: 11,254

Post » Sat May 11, 2013 3:14 pm

If there is a real lag spike due to collision masks, it should be easy to reproduce in a new project. I've never heard anyone else reporting that collision masks cause such problems, so it may be something else in your project instead.Ashley2013-05-11 15:15:10
Scirra Founder
B
383
S
225
G
86
Posts: 24,119
Reputation: 190,546


Return to Construct 2 General

Who is online

Users browsing this forum: BackendFreak, marcoscodas and 4 guests