GodWar Posted July 9, 2012 Author Share Posted July 9, 2012 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:**modGraphicsBelow:```'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 - 11LoadTexture 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 shadowRenderTexture 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 More sharing options...
Joyce Posted July 9, 2012 Share Posted July 9, 2012 Edited the title, because this only works in Snider's later editions, not EO itself. :] Link to comment Share on other sites More sharing options...
GodWar Posted July 9, 2012 Author Share Posted July 9, 2012 Ah OK but i can swear this works also with the original EO! Or? Link to comment Share on other sites More sharing options...
Joyce Posted July 9, 2012 Share Posted July 9, 2012 Nope! EO itself runs on DirectDraw7, which does not support transparency(alpha channels, to be precise) nor *.png images. :] Link to comment Share on other sites More sharing options...
GodWar Posted July 9, 2012 Author Share Posted July 9, 2012 OK my fault :) But it works with this :) THX for info ^^ Link to comment Share on other sites More sharing options...
or3o Posted July 9, 2012 Share Posted July 9, 2012 you might wanna specify that the shadow file needs to go in th misc folder in the graphics directory. But other than that it works perfectly. Link to comment Share on other sites More sharing options...
GodWar Posted July 9, 2012 Author Share Posted July 9, 2012 Sorry i changed it in post 1 :) Link to comment Share on other sites More sharing options...
jcsnider Posted July 9, 2012 Share Posted July 9, 2012 Not bad at all… keep it up and we may just keep you around GodWar. Link to comment Share on other sites More sharing options...
GodWar Posted July 9, 2012 Author Share Posted July 9, 2012 THX if you want you can add it to your next release :-) Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2012 Share Posted July 9, 2012 NICE! hahah i was doing the same thing. You saved me the work! :) 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