Jacquelinett Posted August 27, 2011 Author Share Posted August 27, 2011 Hi guy, as you know, Crystalshire Developer version did not set whether you are a female or male when you create a character and automatically declare you as a male. So what I tried to do is create buttons on the start that allow you to declare whether you are a boy or a girl. I DID THAT :D Now I want to let the player change the sprite if they want (like they did in EO). So, I created 2 new buttons and declared it, they are buttons number 42 and 43\. The declaration part is not hard, I got them on the screen, but now the problem im facing is:This thing is from modInput, Public Sub MainMenu_MouseUp```Case 42 If ImAMale = True Then sprite = Class(newCharClass).MaleSprite(newCharSprite) + 1 Else sprite = Class(newCharClass).FemaleSprite(newCharSprite) + 1 End If If newCharSprite >= spriteCount Then newCharSprite = 0 Else newCharSprite = newCharSprite + 1 End If Case 43 If ImAMale = True Then sprite = Class(newCharClass).MaleSprite(newCharSprite) - 1 Else sprite = Class(newCharClass).FemaleSprite(newCharSprite) - 1 End If If newCharSprite >= spriteCount Then newCharSprite = 0 Else newCharSprite = newCharSprite + 1 End If```What I tried to do here is everytime player press the button, the sprite will change according to the class sprite in the client. Any suggestion? Link to comment Share on other sites More sharing options...
Robin Posted August 28, 2011 Share Posted August 28, 2011 Stop using that GUI system. It makes adding anything a headache. Link to comment Share on other sites More sharing options...
Jacquelinett Posted August 28, 2011 Author Share Posted August 28, 2011 which GUI system? CS:DE or EO? Link to comment Share on other sites More sharing options...
Jacquelinett Posted August 29, 2011 Author Share Posted August 29, 2011 bump Link to comment Share on other sites More sharing options...
Robin Posted August 29, 2011 Share Posted August 29, 2011 Well, you're using CS:DE so I assume you're using the CS:DE GUI engine. Link to comment Share on other sites More sharing options...
Jacquelinett Posted August 29, 2011 Author Share Posted August 29, 2011 but this post doesnt have anything to do with GUI, does it? Link to comment Share on other sites More sharing options...
Robin Posted August 29, 2011 Share Posted August 29, 2011 Yes. You want to add a button. That's done through the GUI system. Link to comment Share on other sites More sharing options...
Jacquelinett Posted August 29, 2011 Author Share Posted August 29, 2011 no no >.> you misunderstand me. I got the buttons part done, what i was asking is why doesn't the sprite change? When i click the button nothing changed (the sprite didnt change). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now