Just consider that I have set their coordinates to form a tree at the middle of the screen.
Now, when I want to move that tree, its means that I have to move each parts of it.
In the actual code, I have around 15 parts (body, hand, hair, brow, eye, nose, mouth, top, pants, shoes, etc) to be individually moved just to perform a single moving animation. That is for a single character. What if I have 3-4 character appeared simultaneously on the screen ? I have to move around 60 objects per frame.
The question is, is there is a way to create a single image object made from different parts of images ? Not a mere container, because if I were to move the container, the container will need to move each parts of its contents, which result just the same cpu usage
For those who wondering why would I separate different parts of the images : I want character pose to appear on the screen based on what he/she is currently equipping, expression, arm pose, hair color, etc. So I don't have to make different single images like 'char_a_frown_hands_up_red_boots_armor_glove_greatsword.png' along with its hundreds of variation
Simple example, A tree consisted of 4 different parts. The root, trunk, branches, and leaves.
Just consider that I have set their coordinates to form a tree at the middle of the screen.
Now, when I want to move that tree, its means that I have to move each parts of it.
In the actual code, I have around 15 parts (body, hand, hair, brow, eye, nose, mouth, top, pants, shoes, etc) to be individually moved just to perform a single moving animation. That is for a single character. What if I have 3-4 character appeared simultaneously on the screen ? I have to move around 60 objects per frame.
The question is, is there is a way to create a single image object made from different parts of images ? Not a mere container, because if I were to move the container, the container will need to move each parts of its contents, which result just the same cpu usage
For those who wondering why would I separate different parts of the images : I want character pose to appear on the screen based on what he/she is currently equipping, expression, arm pose, hair color, etc. So I don't have to make different single images like 'char_a_frown_hands_up_red_boots_armor_glove_greatsword.png' along with its hundreds of variation
Thanks in advance :D
Share this post
Link to post
Share on other sites