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

Paperdoll Size (Eclipse: Skywyre Edition v8)


Grilo13
 Share

Recommended Posts

Hello guys!

I am using Eclipse: Skywyre Edition v8 to my game project.
I need help to determine the size of the paperdoll
When I create a paperdoll greater than the sprite size, paperdoll normally appears on the screen, but it is the right of the character.

Below are some pictures:

Sprite Base

>! ![](http://untamed.wild-refuge.net/images/rpgxp/misc/devil.png)

Paperdoll

>! ![](http://i63.tinypic.com/5oustk.png)

In-Game

>! ![](http://i64.tinypic.com/2nq48bc.jpgg)

Could someone help me on this? * Sorry for bad english *
Link to comment
Share on other sites

@'Jacquelinett':

> Paperdoll's Size's Width / 4 = Individual sprite's width
> Paperdoll's Size's Height/4 = Individual sprite's height

Please could you give some more details about these commands ?

Where to find this line in the source ?
Link to comment
Share on other sites

No, this is the literal answer to your question, it wasn't mean to be a coding answer.

Open your sprite sheet, get the width and the height and divide by 4 to find each box's width and height.

I have not use any eclipse engine for so long, but an easy fix for this would be to increase the size of your spritesheet to your paperdoll's size and move it accordingly.
Link to comment
Share on other sites

The paper dolls should be placed as a sprite to exactly the size and position of where it will be on the character, if you get what i mean. compare the character and the paper doll, and you can see the pictures are not the same size. since the paper doll picture is larger than the character picture, it will not fit. the pictures must be the same size, with the paper doll placed in the exact position the paper doll would be when equipped with the character.
Sorry if you don't understand, im a very bad explainer.
Hope this helps, good luck!
Seki
Link to comment
Share on other sites

@'Sekiguchi:

> The paper dolls should be placed as a sprite to exactly the size and position of where it will be on the character, if you get what i mean. compare the character and the paper doll, and you can see the pictures are not the same size. since the paper doll picture is larger than the character picture, it will not fit. the pictures must be the same size, with the paper doll placed in the exact position the paper doll would be when equipped with the character.
> Sorry if you don't understand, im a very bad explainer.
> Hope this helps, good luck!
> Seki

So paperdoll sheet size has to be exactly like the sprite sheet?

I found the line where the paperdoll shows the character.
Call DrawPaperdoll(**x**, y, Item(GetPlayerEquipament(Index, helmet)).Paperdoll, Anim…......

If I change the variable "x" to "x-32", the largest sheet paperdoll fits perfectly into the lower sheet sprite, but if the paperdoll sheet is equal to sprite sheet, the paperdoll appears to the left of the sprite.

How do I get "x" is equal to "x-32" only if the paperdoll sheet is greater than the sprite sheet.
Link to comment
Share on other sites

This is the code that displays the paperdoll:
```
'Helmet
   If GetPlayerEquipment(Index, helmet) > 0 Then

   If Item(GetPlayerEquipment(Index, helmet)).Paperdoll > 0 Then
'###########
   If (Tex_Paperdoll(Sprite).Width) > (Tex_Character(Sprite).Width) Then
   x = x - 32
'###########
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, helmet)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, helmet)).r, 255 - Item(GetPlayerEquipment(Index, helmet)).G, 255 - Item(GetPlayerEquipment(Index, helmet)).B)
   End If
   End If
   End If

```
Among the "###" is the change I want to do, but it's not working.

Some different logic to operate this change?
Link to comment
Share on other sites

I'm not gonna do the code for you, but the right way to do this is to do proper math:

Divide the character's individual sprite's width and height to get the mid point (aka the center), then draw the paperdoll's sprite box at the character mid point - (paperdoll sprite's width / 2) <–- for X coordinate and mid point - (spriteheight / 2) <--- for Y coordinate. This will always center the paperdoll to the sprite

What you are doing is basically draw all paperdoll 32 X to the right, all of them.
Link to comment
Share on other sites

Both your character and paperdoll sprite sheet should be the identical size. The above files, you attached, are different sizes; thus, you are getting clipping errors. Your character sprite is the correct Rpgmaker XP size; however, your wings are not. A great tool to use on steam is Game Character Hub to work with sprites and paperdolls.

**Example: Character**
![](http://i.imgur.com/BmjZvub.png)

**Example: Paperdoll (Armor)**
![](http://i.imgur.com/MbYdlLt.png)
Link to comment
Share on other sites

@'Agoraphobic':

> Both your character and paperdoll sprite sheet should be the identical size. The above files, you attached, are different sizes; thus, you are getting clipping errors. Your character sprite is the correct Rpgmaker XP size; however, your wings are not. A great tool to use on steam is Game Character Hub to work with sprites and paperdolls.
>
> **Example: Character**
> ![](http://i.imgur.com/BmjZvub.png)
>
> **Example: Paperdoll (Armor)**
> ![](http://i.imgur.com/MbYdlLt.png)

The clipping of the paperdoll sheet even though of different size is perfect.
My problem is in the position where it appears, need to find the formula so that it centralizes the width of the sprite.
Link to comment
Share on other sites

Ya'll realize I had my own little custom paperdoll system in place to make it possible to have whole shields and paperdolls bigger than the character frame right?

Not only does this code allow you to set the rendering order per direction, but also allows you to position your paperdolls perfectly. Just remain consistent with your paperdolls.

```
Select Case GetPlayerDir(Index)

   Case DIR_DOWN

   If GetTickCount > Player(Index).StartFlash Then
       Call DrawSprite(Sprite, x, y, rec, a, r, G, B)
       Player(Index).StartFlash = 0
   Else

       Call DrawSprite(Sprite, x, y, rec, a, r, G, B, True)
   End If

   'Helmet
   If GetPlayerEquipment(Index, helmet) > 0 Then

   If Item(GetPlayerEquipment(Index, helmet)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, helmet)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, helmet)).r, 255 - Item(GetPlayerEquipment(Index, helmet)).G, 255 - Item(GetPlayerEquipment(Index, helmet)).B)

   End If
   End If

   'Charm
   If GetPlayerEquipment(Index, charm) > 0 Then

   If Item(GetPlayerEquipment(Index, charm)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, charm)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, charm)).r, 255 - Item(GetPlayerEquipment(Index, charm)).G, 255 - Item(GetPlayerEquipment(Index, charm)).B)

   End If
   End If

   'Boots
   If GetPlayerEquipment(Index, boots) > 0 Then

   If Item(GetPlayerEquipment(Index, boots)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, boots)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, boots)).r, 255 - Item(GetPlayerEquipment(Index, boots)).G, 255 - Item(GetPlayerEquipment(Index, boots)).B)

   End If
   End If

   'Whetstone
   If GetPlayerEquipment(Index, whetstone) > 0 Then

   If Item(GetPlayerEquipment(Index, whetstone)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, whetstone)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, whetstone)).r, 255 - Item(GetPlayerEquipment(Index, whetstone)).G, 255 - Item(GetPlayerEquipment(Index, whetstone)).B)

   End If
   End If

   'Armor
   If GetPlayerEquipment(Index, armor) > 0 Then

   If Item(GetPlayerEquipment(Index, armor)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, armor)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, armor)).r, 255 - Item(GetPlayerEquipment(Index, armor)).G, 255 - Item(GetPlayerEquipment(Index, armor)).B)

   End If
   End If

   'Ring
   If GetPlayerEquipment(Index, ring) > 0 Then

   If Item(GetPlayerEquipment(Index, ring)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, ring)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, ring)).r, 255 - Item(GetPlayerEquipment(Index, ring)).G, 255 - Item(GetPlayerEquipment(Index, ring)).B)

   End If
   End If

   'Enchant
   If GetPlayerEquipment(Index, enchant) > 0 Then

   If Item(GetPlayerEquipment(Index, enchant)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, enchant)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, enchant)).r, 255 - Item(GetPlayerEquipment(Index, enchant)).G, 255 - Item(GetPlayerEquipment(Index, enchant)).B)

   End If
   End If

   'Shield
   If GetPlayerEquipment(Index, shield) > 0 Then

   If Item(GetPlayerEquipment(Index, shield)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, shield)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, shield)).r, 255 - Item(GetPlayerEquipment(Index, shield)).G, 255 - Item(GetPlayerEquipment(Index, shield)).B)

   End If
   End If

   'Weapon
   If GetPlayerEquipment(Index, weapon) > 0 Then

   If Item(GetPlayerEquipment(Index, weapon)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, weapon)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, weapon)).r, 255 - Item(GetPlayerEquipment(Index, weapon)).G, 255 - Item(GetPlayerEquipment(Index, weapon)).B)

   End If
   End If

   Case DIR_UP

   'Shield
   If GetPlayerEquipment(Index, shield) > 0 Then

   If Item(GetPlayerEquipment(Index, shield)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, shield)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, shield)).r, 255 - Item(GetPlayerEquipment(Index, shield)).G, 255 - Item(GetPlayerEquipment(Index, shield)).B)
   End If
   End If

   'Weapon
   If GetPlayerEquipment(Index, weapon) > 0 Then

   If Item(GetPlayerEquipment(Index, weapon)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, weapon)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, weapon)).r, 255 - Item(GetPlayerEquipment(Index, weapon)).G, 255 - Item(GetPlayerEquipment(Index, weapon)).B)

   End If
   End If

   If GetTickCount > Player(Index).StartFlash Then
       Call DrawSprite(Sprite, x, y, rec, a, r, G, B)
       Player(Index).StartFlash = 0
   Else

       Call DrawSprite(Sprite, x, y, rec, a, r, G, B, True)
   End If

   'Charm
   If GetPlayerEquipment(Index, charm) > 0 Then

   If Item(GetPlayerEquipment(Index, charm)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, charm)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, charm)).r, 255 - Item(GetPlayerEquipment(Index, charm)).G, 255 - Item(GetPlayerEquipment(Index, charm)).B)

   End If
   End If

   'Boots
   If GetPlayerEquipment(Index, boots) > 0 Then

   If Item(GetPlayerEquipment(Index, boots)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, boots)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, boots)).r, 255 - Item(GetPlayerEquipment(Index, boots)).G, 255 - Item(GetPlayerEquipment(Index, boots)).B)

   End If
   End If

   'Whetstone
   If GetPlayerEquipment(Index, whetstone) > 0 Then

   If Item(GetPlayerEquipment(Index, whetstone)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, whetstone)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, whetstone)).r, 255 - Item(GetPlayerEquipment(Index, whetstone)).G, 255 - Item(GetPlayerEquipment(Index, whetstone)).B)

   End If
   End If

   'Helmet
   If GetPlayerEquipment(Index, helmet) > 0 Then

   If Item(GetPlayerEquipment(Index, helmet)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, helmet)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, helmet)).r, 255 - Item(GetPlayerEquipment(Index, helmet)).G, 255 - Item(GetPlayerEquipment(Index, helmet)).B)

   End If
   End If

   'Armor
   If GetPlayerEquipment(Index, armor) > 0 Then

   If Item(GetPlayerEquipment(Index, armor)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, armor)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, armor)).r, 255 - Item(GetPlayerEquipment(Index, armor)).G, 255 - Item(GetPlayerEquipment(Index, armor)).B)

   End If
   End If

   'Ring
   If GetPlayerEquipment(Index, ring) > 0 Then

   If Item(GetPlayerEquipment(Index, ring)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, ring)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, ring)).r, 255 - Item(GetPlayerEquipment(Index, ring)).G, 255 - Item(GetPlayerEquipment(Index, ring)).B)

   End If
   End If

   'Enchant
   If GetPlayerEquipment(Index, enchant) > 0 Then

   If Item(GetPlayerEquipment(Index, enchant)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, enchant)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, enchant)).r, 255 - Item(GetPlayerEquipment(Index, enchant)).G, 255 - Item(GetPlayerEquipment(Index, enchant)).B)

   End If
   End If

   Case DIR_LEFT

   'Weapon
   If GetPlayerEquipment(Index, weapon) > 0 Then

   If Item(GetPlayerEquipment(Index, weapon)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, weapon)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, weapon)).r, 255 - Item(GetPlayerEquipment(Index, weapon)).G, 255 - Item(GetPlayerEquipment(Index, weapon)).B)

   End If
   End If

   If GetTickCount > Player(Index).StartFlash Then
       Call DrawSprite(Sprite, x, y, rec, a, r, G, B)
       Player(Index).StartFlash = 0
   Else

       Call DrawSprite(Sprite, x, y, rec, a, r, G, B, True)
   End If

   'Helmet
   If GetPlayerEquipment(Index, helmet) > 0 Then

   If Item(GetPlayerEquipment(Index, helmet)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, helmet)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, helmet)).r, 255 - Item(GetPlayerEquipment(Index, helmet)).G, 255 - Item(GetPlayerEquipment(Index, helmet)).B)

   End If
   End If

   'Charm
   If GetPlayerEquipment(Index, charm) > 0 Then

   If Item(GetPlayerEquipment(Index, charm)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, charm)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, charm)).r, 255 - Item(GetPlayerEquipment(Index, charm)).G, 255 - Item(GetPlayerEquipment(Index, charm)).B)

   End If
   End If

   'Boots
   If GetPlayerEquipment(Index, boots) > 0 Then

   If Item(GetPlayerEquipment(Index, boots)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, boots)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, boots)).r, 255 - Item(GetPlayerEquipment(Index, boots)).G, 255 - Item(GetPlayerEquipment(Index, boots)).B)

   End If
   End If

   'Whetstone
   If GetPlayerEquipment(Index, whetstone) > 0 Then

   If Item(GetPlayerEquipment(Index, whetstone)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, whetstone)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, whetstone)).r, 255 - Item(GetPlayerEquipment(Index, whetstone)).G, 255 - Item(GetPlayerEquipment(Index, whetstone)).B)

   End If
   End If

   'Armor
   If GetPlayerEquipment(Index, armor) > 0 Then

   If Item(GetPlayerEquipment(Index, armor)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, armor)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, armor)).r, 255 - Item(GetPlayerEquipment(Index, armor)).G, 255 - Item(GetPlayerEquipment(Index, armor)).B)

   End If
   End If

   'Ring
   If GetPlayerEquipment(Index, ring) > 0 Then

   If Item(GetPlayerEquipment(Index, ring)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, ring)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, ring)).r, 255 - Item(GetPlayerEquipment(Index, ring)).G, 255 - Item(GetPlayerEquipment(Index, ring)).B)

   End If
   End If

   'Enchant
   If GetPlayerEquipment(Index, enchant) > 0 Then

   If Item(GetPlayerEquipment(Index, enchant)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, enchant)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, enchant)).r, 255 - Item(GetPlayerEquipment(Index, enchant)).G, 255 - Item(GetPlayerEquipment(Index, enchant)).B)

   End If
   End If

   'Shield
   If GetPlayerEquipment(Index, shield) > 0 Then

   If Item(GetPlayerEquipment(Index, shield)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, shield)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, shield)).r, 255 - Item(GetPlayerEquipment(Index, shield)).G, 255 - Item(GetPlayerEquipment(Index, shield)).B)

   End If
   End If

   Case DIR_RIGHT

   'Shield
   If GetPlayerEquipment(Index, shield) > 0 Then

   If Item(GetPlayerEquipment(Index, shield)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, shield)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, shield)).r, 255 - Item(GetPlayerEquipment(Index, shield)).G, 255 - Item(GetPlayerEquipment(Index, shield)).B)

   End If
   End If

   If GetTickCount > Player(Index).StartFlash Then
       Call DrawSprite(Sprite, x, y, rec, a, r, G, B)
       Player(Index).StartFlash = 0
   Else

       Call DrawSprite(Sprite, x, y, rec, a, r, G, B, True)
   End If

   'Helmet
   If GetPlayerEquipment(Index, helmet) > 0 Then

   If Item(GetPlayerEquipment(Index, helmet)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, helmet)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, helmet)).r, 255 - Item(GetPlayerEquipment(Index, helmet)).G, 255 - Item(GetPlayerEquipment(Index, helmet)).B)

   End If
   End If

   'Charm
   If GetPlayerEquipment(Index, charm) > 0 Then

   If Item(GetPlayerEquipment(Index, charm)).Paperdoll > 0 Then
  Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, charm)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, charm)).r, 255 - Item(GetPlayerEquipment(Index, charm)).G, 255 - Item(GetPlayerEquipment(Index, charm)).B)

   End If
   End If

   'Boots
   If GetPlayerEquipment(Index, boots) > 0 Then

   If Item(GetPlayerEquipment(Index, boots)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, boots)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, boots)).r, 255 - Item(GetPlayerEquipment(Index, boots)).G, 255 - Item(GetPlayerEquipment(Index, boots)).B)

   End If
   End If

   'Whetstone
   If GetPlayerEquipment(Index, whetstone) > 0 Then

   If Item(GetPlayerEquipment(Index, whetstone)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, whetstone)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, whetstone)).r, 255 - Item(GetPlayerEquipment(Index, whetstone)).G, 255 - Item(GetPlayerEquipment(Index, whetstone)).B)

   End If
   End If

   'Armor
   If GetPlayerEquipment(Index, armor) > 0 Then

   If Item(GetPlayerEquipment(Index, armor)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, armor)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, armor)).r, 255 - Item(GetPlayerEquipment(Index, armor)).G, 255 - Item(GetPlayerEquipment(Index, armor)).B)

   End If
   End If

   'Ring
   If GetPlayerEquipment(Index, ring) > 0 Then

   If Item(GetPlayerEquipment(Index, ring)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, ring)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, ring)).r, 255 - Item(GetPlayerEquipment(Index, ring)).G, 255 - Item(GetPlayerEquipment(Index, ring)).B)

   End If
   End If

   'Enchant
   If GetPlayerEquipment(Index, enchant) > 0 Then

   If Item(GetPlayerEquipment(Index, enchant)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, enchant)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, enchant)).r, 255 - Item(GetPlayerEquipment(Index, enchant)).G, 255 - Item(GetPlayerEquipment(Index, enchant)).B)

   End If
   End If

   'Weapon
   If GetPlayerEquipment(Index, weapon) > 0 Then

   If Item(GetPlayerEquipment(Index, weapon)).Paperdoll > 0 Then
   Call DrawPaperdoll(x, y, Item(GetPlayerEquipment(Index, weapon)).Paperdoll, Anim, spritetop, a, 255 - Item(GetPlayerEquipment(Index, weapon)).r, 255 - Item(GetPlayerEquipment(Index, weapon)).G, 255 - Item(GetPlayerEquipment(Index, weapon)).B)

   End If
   End If

   End Select

   ' Error handler
   Exit Sub
errorhandler:
   HandleError "DrawPlayer", "modGraphics", Err.Number, Err.Description, Err.Source, Err.HelpContext
   Err.Clear
   Exit Sub
End Sub
```
This code is found near the bottom of DrawPlayer in modGraphics.
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...