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

GodWar

Members
  • Posts

    51
  • Joined

  • Last visited

    Never

Everything posted by GodWar

  1. 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 :)
×
×
  • Create New...