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?
B
69
S
21
G
15
Posts: 701
Reputation: 15,629

Post » Sun Jan 06, 2013 6:56 am

Ya, less sprites the better. Use the display sprite's collision polygon if you can.
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190


Return to Construct 2 General

Who is online

Users browsing this forum: tomi71 and 13 guests