![]() |
Character Preview - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Character Preview (/showthread.php?tid=1698) |
Character Preview - wisefire - 23-04-2008 Hmm, I want to Blt the 3 Account Characters so you can preview them at the Character select. I know how to do the blt'ing but, How do I go about blt'ing what character? Like, How would I pick what character is blt'ed? Re: Character Preview - Stomach Pulser - 23-04-2008 I just have all three loaded at login. Mine are all shown at the same time, though. Just take wahtever sprite the character slected has, then blt from there. Get it from the list element (like a spell). Re: Character Preview - wisefire - 23-04-2008 Stomach Pulser Wrote:I just have all three loaded at login. Mine are all shown at the same time, though. Just take wahtever sprite the character slected has, then blt from there. Get it from the list element (like a spell). Yeah... But would I need to create a new bltcharacter or could I possibly use bltplayer? Re: Character Preview - Stomach Pulser - 24-04-2008 I think I just made a new blt sub that blits what I tell it to. It isn't complicated. Re: Character Preview - Anthony - 24-04-2008 Use BltToDC and blt them in the All characters packet. Code: DD_SpriteSurf.BltToDC frmChars.hdc, rec, rec_pos But before that define your rec and rec_pos. Your rec would be the source of your image. Something like this. Code: With rec Thats for 32x64 sprites but you can fix it up easily enough. Then with rec_pos (this is what you wanted to know in the first place I think) it would be a matter of telling it were to blt to. With rec_pos you can tell it to blt whatever character number to whichever coordinates you want. |