Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sprite Preview
#1
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.
Reply
#2
There are tutorials in the feature tutorials list, go there first...
Reply
#3
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)