| Mirage Source http://web.miragesource.net/forums/ |
|
| Sprite Preview http://web.miragesource.net/forums/viewtopic.php?f=210&t=3526 |
Page 1 of 1 |
| Author: | original [ Tue Mar 25, 2008 10:54 pm ] |
| Post subject: | Sprite Preview |
In frmNewChar, when you select a class, can someone give me the code to show a preview of how that sprite looks? I could do the GetVar part, but not the other part of figuring out which class they picked. I'm a still new programmer, so mind if i sound newbish. |
|
| Author: | Stomach Pulser [ Tue Mar 25, 2008 11:59 pm ] |
| Post subject: | Re: Sprite Preview |
There are tutorials in the feature tutorials list, go there first... |
|
| Author: | William [ Wed Mar 26, 2008 4:47 pm ] |
| Post subject: | Re: Sprite Preview |
The EASIEST way possible would be to put the different sprites in a row in a new bmp file. Then put a picture box inside another pixture box. The picture box thats inside should be named picSprites. now on form_load, put: Code: picSprites.picture = loadpicture(the bmp file) Now in your class list. Add: Code: picSprites.top = cmbClass.ListIndex * 32 You will probably see what happens. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|