Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Some help with CS:DE (Yes i actually tried before post :P )


Jacquelinett
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...