| Mirage Source http://miragesource.net/forums/ |
|
| Sprite Selection http://miragesource.net/forums/viewtopic.php?f=210&t=1041 |
Page 1 of 1 |
| Author: | Tony [ Wed Jan 03, 2007 8:40 am ] |
| Post subject: | Sprite Selection |
Sprite Selection This was done %100 by Pando You get to select any sprite of your desire at New Character. This is just a simple modification, a little bittle this and a little bit of that
picSpriteLoader - AutoRedraw AutoResize Visible False lblDown with caption of "<" lblUp with caption of ">" txtSprite with text of "0" Visible False picSprite tmrSprite Interval 1 In lblDown (code) add (For 32x64 Sprites, CHALLENGE! - Change to 32x32) Code: Dim Cap As Integer Cap = txtSprite.Text If txtSprite.Text = "2" Then txtSprite.Text = "0" ElseIf txtSprite.Text = "0" Then Else txtSprite.Text = Cap - 2 End If In lblUp (Code you f'in noob <3) Add (For 32x64 Sprites, CHALLENGE! - Change to 32x32) Code: Dim Cap As Integer Cap = txtSprite.Text If txtSprite.Text = "0" Then txtSprite.Text = Cap + 2 Else txtSprite.Text = Cap + 2 End If Find Sub SendAddChar and Add this to that line Code: , ByVal SpriteNum As Long CHALLENGE! - Edit packet and add SpriteNum Find Call SendAddChar and at the end of it but before ) Add Code: frmNewChar.txtSprite.Text Now Server Side! find Code: "addchar" Now you should see Name = Val(Parse(1)) etc Now add this at the end of those Parses Code: SpriteNum = Val(Parse(NEXT NUMBER HERE)) Next Find Below Code: ' Everything went ok, add the character You should see Call AddChar. Add , SpriteNum before ) Now find Sub AddChar and add , ByVal SpriteNum As Long before ) Now look for if blablahsexmale or something then Player(Index).Char.Sprite = else blahblahsexmale then Player(Index).Char.Sprite = end if Delete all that and make it Code: Player(Index).Char.Sprite = SpriteNum
I think you should be done. :: Pando |
|
| Author: | Gawian [ Thu Mar 22, 2007 3:40 am ] |
| Post subject: | |
Sorry if I'm necro-posting but I was wondering what would have to be done to make this code so for both male and female you could set 4 different sprites for each |
|
| Author: | Tony [ Thu Mar 22, 2007 6:36 am ] |
| Post subject: | |
Create 8 pic boxes, and when the user clicks on the box make txtSprite.text = that sprite number.. Fairly simple..\ |
|
| Author: | Lea [ Thu Mar 22, 2007 2:01 pm ] |
| Post subject: | |
Because adding 8 of VB's heaviest control is always the solution. |
|
| Author: | Robin [ Thu Mar 22, 2007 2:43 pm ] |
| Post subject: | |
Dave wrote: Because adding 8 of VB's heaviest control is always the solution.
Sarcastic bastard! Kuja, you shouldn't really do it like this. Loading up the DX Surfaces a bit earlier would be an idea, then simply bitblt from those. Ps. I love your avatar, Dave. |
|
| Author: | Gawian [ Fri Mar 23, 2007 11:46 am ] |
| Post subject: | |
Thanks for the info |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|