Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Character Selection Form
#1
Currently for displaying my characters (2) sprite on the character select form I am using BltToDC and blting directly to the form. It works nicely and everything until I delete a character. After the character is deleted it all goes fine except when it sends me back to the login screen and I log back in the lstChars displays a "0" where the name used to be which is correct but it is still blting the sprite. If I close the game right out and reload it again and login then the character isn't blted anymore. Does anybody have any ideas as to why this is happening? The characters data is sent every time when you login so shouldn't it recognize it's not there anymore and blt nothing?
Reply
#2
I think its just a case of not clearing your surface, either chuck in a check on form load or unload the surface when you delete your character.
Reply
#3
Thanks for the reply Fox. I tried setting the sprite surface to nothing and even destroying the entire directx and reloading it again after the character is deleted but neither seem to work Sad. Any other ideas? Also, when I blt the sprite it is also blting the black color around it which is supposed to be transparent. Does BltToDC not allow for the key color?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)