How do I Reduce Collision Checks?

Get help using Construct 2

Post » Sat May 02, 2015 1:11 pm

Hi,
I'm developing a mobile game for android. I wanted to reduce the collision checks because i feel like it's running my game slow.

How do I do it?
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Sat May 02, 2015 5:46 pm

On the properties for each object on your layout their should be a Collisions Boolean, on anything your don't need to check collisions for turn that off (backgrounds, tiles, UI anything like that's got to go)
B
9
S
2
Posts: 54
Reputation: 638

Post » Sat May 02, 2015 5:49 pm

Beside that, you could try and reduce the times you check for collisions in your actual code. Say if you have your "check for collisions" on every tick you may want to push it back to being on a timed instance of every 0.1 to 0,2 seconds so it's not checking quite as much.
B
9
S
2
Posts: 54
Reputation: 638

Post » Sat May 02, 2015 6:05 pm

MythStylz wrote:Beside that, you could try and reduce the times you check for collisions in your actual code. Say if you have your "check for collisions" on every tick you may want to push it back to being on a timed instance of every 0.1 to 0,2 seconds so it's not checking quite as much.


can you give us an example about this and about bootlean collisions checks ?

thanks
B
46
S
16
G
8
Posts: 794
Reputation: 8,335

Post » Sat May 02, 2015 8:03 pm

Thnx, I disabled unnecessary collisions. So, how can I turn every tick to every x second?
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Sun May 03, 2015 11:01 am

Guys, anyone Help me with this.
B
24
S
7
Posts: 337
Reputation: 2,224

Post » Sun May 03, 2015 11:07 am

Without seeing your events and or your capx, it's hard to give specific information.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun May 03, 2015 11:58 am

ok how can i send it? @LittleStain
B
24
S
7
Posts: 337
Reputation: 2,224


Return to How do I....?

Who is online

Users browsing this forum: DiegoSanudoDT, Yahoo [Bot] and 11 guests