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

[EO - Event System 3.0] Draw Shadow


GodWar
 Share

Recommended Posts

How do add shadows like in CS:

**Screenshot:**
[![](http://www.freemmorpgmaker.com/files/imagehost/pics/642ebbcc5026bc3e65b4baae11819909.png)](http://www.freemmorpgmaker.com/files/imagehost/#642ebbcc5026bc3e65b4baae11819909.png)

**Client:**
modGraphics

Below:
```
'Graphic Textures
```Add:
```
Public Tex_Shadow As DX8TextureRec
```

* * *

Below:
```
ReDim Preserve gTexture(NumTextures)
```Add:
```
Tex_Shadow.filepath = App.Path & "\data files\graphics\misc\shadow.png"
Tex_Shadow.Texture = NumTextures - 11
LoadTexture Tex_Shadow
```

* * *

Above:
```
ReDim Preserve gTexture(NumTextures)
```Change
```
NumTextures = NumTextures + 11
```To
```
NumTextures = NumTextures + 12
```

* * *

Below:
```
Tex_Selection.Texture = 0
```Add:
```
Tex_Shadow.Texture = 0
```

* * *

In:
```
Private Sub DrawSprite
```Above:
```
RenderTexture Tex_Character(Sprite), x, y, rec.Left, rec.Top, rec.Right - rec.Left, rec.Bottom - rec.Top, rec.Right - rec.Left, rec.Bottom - rec.Top, D3DColorRGBA(255, 255, 255, 255)
```Add:
```
' render player shadow
RenderTexture Tex_Shadow, x, y + 18, 0, 0, 32, 32, 32, 32, D3DColorRGBA(255, 255, 255, 200)

```

* * *

And copy the shadow.png (Attachement) into "\client\data files\graphics\misc\"

And to jcsnider :)
You can use it in your next release if you wan't :)
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...