- Home /
Best way to create/design modular Player
So I had an idea for the game that I am working on to have a the main character be completely modular and upgradable. The player is a robot and I would like to have each piece (torso, head, legs, left arm, right arm) to be able to be switched out and upgraded with better parts.
I am wondering what is the best method to go to create the different parts and have them be assembled at runtime. I have started with just basic unity native shapes as prototypes for the different pieces.
What would be the best way to accomplish this without killing the draw-calls on the iphone/ipad/android?
Answer by Muzz 1 · Apr 22, 2011 at 08:30 PM
One of the best ways is to model your character with ABSOLUTELY EVERYTHING ON HIM! Then, just make everything not relevent invisible. This is a really good, quick method, and allows you to have lots of items with little speed impact. (Also, the character with all the suits etc on looks awesome!)
I'm doing something similar, but for pc. Is there really no loss in frames etc. because there will be up to about 125 upgrades per "player model" in my game?
yeah i have the same question. If you are offering tons of different upgrades or just want randomly generated body parts (stats,equipment etc) would you really want to have to model everything upfront? It makes more sense to me to model the individual pieces and then let the engine put them together. But Once again, I am noob so that may be totally wrong
to clarify, i don't want my character to have a single upgrade path. I would like each part to be upgraded individually and I would like for each body part to carry a set of stats that could be randomly generated (enemy spawns with random amount of strength,shield, etc)
This is what I saw someone do, and they had huge amounts of upgrades, and it had a really good framerate.
ok cool. I am just trying to wrap my head around it. I can see how this would work, just was a bit worried about scenarios with large number of updates. do you know if the objects that are being hidden are still being sent to the gpu?
Answer by Jeliel · Apr 20, 2012 at 12:48 PM
you can create bones in the position that you need your Armor / Weapon to be instantiated and use them as Transforms. never tried it but i imagine that it works since these bones will move and rotate with your character
Your answer
Follow this Question
Related Questions
How to maintain the speed of the game on different android devices... 2 Answers
Poor fog performance on the iPad? 2 Answers
Halo effect perfomance on mobile devices 1 Answer
iPhone 4 game lags 2 Answers
How to check a device volume level? 0 Answers