Sprite collisions or bounding box?

Discussion and feedback on Construct 2

Post » Sun Jan 06, 2013 5:50 am

So I'm wondering in terms of performance which is better. Lets say I have 100 buildings, 50 trees, 40 stream, and 40 mountain sprites all with solid sections. Would it improve performance to create 1invisible solid sprite and overlay copies of it all over the solid sections of those sprites. Or set collisions up for each of those sprites individually? I've been going with the assumption that using just the one sprite with collisions for all of my images would improve performance and it does seem to flicker less when scrolling the visible window across the layout. But is it really improving the logic or am I just imagining it?
www.h1k3.tech

We are here for you!
B
74
S
22
G
15
Posts: 707
Reputation: 15,906

Post » Sun Jan 06, 2013 6:56 am

Ya, less sprites the better. Use the display sprite's collision polygon if you can.
B
139
S
67
G
17
Posts: 1,767
Reputation: 20,070


Return to Construct 2 General

Who is online

Users browsing this forum: Prominent and 10 guests