One MASTER object or 15+ objects?

Just started using Construct 2? Post your questions here

Post » Wed Feb 22, 2017 3:47 pm

My game will have around 15 projectiles and I was wondering if I should make one master projectile with lots of animations OR 15 objects with 1 animation(code with family)?
B
13
S
2
Posts: 6
Reputation: 637

Post » Wed Feb 22, 2017 4:55 pm

This depends on whether you need to treat the projectiles differently.

I guess that each projectile will have different effects on impact.
If that is the case (instead of just graphical differences), I would highly recommend that you use several Sprites since that will make it easier for you to treat them differently in events.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Wed Feb 22, 2017 5:05 pm

Using 15 separate objects (with events referencing a family) is better for memory management. Objects are either fully loaded in to memory, or not at all. So if you use a master object, using just one kind will load all kinds in to memory, whereas using separate objects allows only the used objects to be loaded in to memory.
Scirra Founder
B
387
S
230
G
88
Posts: 24,249
Reputation: 192,450

Post » Sat Feb 25, 2017 2:07 am

Thanks for the reply, would it make a difference in bandwidth usage (multiplayer object sync)?
B
13
S
2
Posts: 6
Reputation: 637


Return to Beginner's Questions

Who is online

Users browsing this forum: Apollo14 and 1 guest