erkro1 Posted April 7, 2013 Author Share Posted April 7, 2013 I'm having difficulties with the paperdolling, it's not displaying the item or anything.Code:```Public Sub DrawPaperdoll(ByVal x2 As Long, ByVal y2 As Long, ByVal Sprite As Long, ByVal Anim As Long, ByVal spritetop As Long, ByVal Colour As Long)Dim Rec As RECTDim X As Long, y As LongDim width As Long, height As Long' If debug mode, handle error then exit outIf Options.Debug = 1 Then On Error GoTo ErrorHandlerIf Sprite < 1 Or Sprite > NumAuras Then Exit SubWith Rec.Top = spritetop * (Tex_Aura(Sprite).height / 4).Bottom = .Top + (Tex_Aura(Sprite).height / 4).Left = Anim * (Tex_Aura(Sprite).width / 3).Right = .Left + (Tex_Aura(Sprite).width / 3)End With' clippingX = ConvertMapX(x2)y = ConvertMapY(y2)width = (Rec.Right - Rec.Left)height = (Rec.Bottom - Rec.Top)' Clip to screenIf y < 0 ThenWith Rec.Top = .Top - yEnd Withy = 0End IfIf X < 0 ThenWith Rec.Left = .Left - XEnd WithX = 0End IfRenderTexture Tex_Aura(Sprite), X, y, Rec.Left, Rec.Top, Rec.Right - Rec.Left, Rec.Bottom - Rec.Top, Rec.Right - Rec.Left, Rec.Bottom - Rec.Top, Colour' Error handlerExit SubErrorHandler:HandleError "DrawPaperdoll", "modGraphics", Err.Number, Err.Description, Err.Source, Err.HelpContextErr.ClearExit SubEnd Sub```If you need more just ask. ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png) Link to comment Share on other sites More sharing options...
escfoe2 Posted April 22, 2013 Share Posted April 22, 2013 Well, what engine are you using for starters? Also, include which version of DirectX you are using to simplify finding an answer to your problem.Lastly, if you made any changes from the stock code, it would be best to provide a copy of the original code to compare. I'll find your problem and tell you what you need to do to fix it. Link to comment Share on other sites More sharing options...
abhi2011 Posted April 22, 2013 Share Posted April 22, 2013 > Well, what engine are you using for starters? Also, include which version of DirectX you are using to simplify finding an answer to your problem.> > Lastly, if you made any changes from the stock code, it would be best to provide a copy of the original code to compare. I'll find your problem and tell you what you need to do to fix it.How much versions of DirectX8 are there? Link to comment Share on other sites More sharing options...
damian666 Posted April 22, 2013 Share Posted April 22, 2013 i think about 3 at the moment xd Link to comment Share on other sites More sharing options...
erkro1 Posted April 22, 2013 Author Share Posted April 22, 2013 Forgot to tell that I already fixed the problem, it wasn't that piece of code. ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)But thanks anyway. Link to comment Share on other sites More sharing options...
escfoe2 Posted April 22, 2013 Share Posted April 22, 2013 > Forgot to tell that I already fixed the problem, it wasn't that piece of code. ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)> > But thanks anyway.Oh dear god you're one of THEM… lolIt might not be a bad idea to contribute back to the community by telling us what the problem was and how you fixed it. Link to comment Share on other sites More sharing options...
erkro1 Posted April 24, 2013 Author Share Posted April 24, 2013 > Oh dear god you're one of THEM… lol> > It might not be a bad idea to contribute back to the community by telling us what the problem was and how you fixed it.The problem was in the ResBak Online engine, paperdolls were already working but called aura's. Link to comment Share on other sites More sharing options...
jordy205 Posted May 4, 2013 Share Posted May 4, 2013 How you have solved i have the same enhine and i need help ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png) Link to comment Share on other sites More sharing options...
erkro1 Posted May 8, 2013 Author Share Posted May 8, 2013 Well, I've basically made it so you could also select aura's for other weapons.Because the aura code was working fine. Link to comment Share on other sites More sharing options...
jordy205 Posted May 8, 2013 Share Posted May 8, 2013 > Well, I've basically made it so you could also select aura's for other weapons.> > Because the aura code was working fine.ok thanks 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