| Mirage Source http://miragesource.net/forums/ |
|
| Paperdolling http://miragesource.net/forums/viewtopic.php?f=201&t=4274 |
Page 1 of 1 |
| Author: | Anthony [ Mon Sep 08, 2008 7:47 pm ] |
| Post subject: | Paperdolling |
I am going to start working on adding some paperdolling features. Currently we have a naked sprite with underwear, which comes in a few different colors. I want to be able to blt the hair, eyes and clothes onto the sprite. I know I could make a new surface for each one of these and load them separately and then just blt to the proper coordinates but I am under the impression that there is a more efficient way of doing it. Does anybody know the most efficient and memory friendly way of adding paperdoll features? |
|
| Author: | Robin [ Mon Sep 08, 2008 8:16 pm ] |
| Post subject: | Re: Paperdolling |
Pre-rendered. |
|
| Author: | Lea [ Mon Sep 08, 2008 10:03 pm ] |
| Post subject: | Re: Paperdolling |
Create a surface for the sprite. Load the sprite and create the fully assembled character on that surface. Then you can draw your sprite as normal. That is what Robin meant |
|
| Author: | Anthony [ Mon Sep 08, 2008 10:12 pm ] |
| Post subject: | Re: Paperdolling |
So I would load the sprite and paperdoll files then pre-render everything onto the sprite surface and then blt the entire thing as one? |
|
| Author: | Robin [ Mon Sep 08, 2008 10:15 pm ] |
| Post subject: | Re: Paperdolling |
Not the sprite surface. I'd set up a dynamic array which only stores yourself and other players on your map. Simply do a re-dim preserve for new players joining and the same for people leaving. ;D |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|