ZL|LuCaS Posted March 18, 2014 Share Posted March 18, 2014 (edited) is the first time I'm using dxDraw Material Line3D. and I have a pobrêma the image does not increase from the middle out I want increases from inside to outside. can someone help me? local material = dxCreateTexture( "zz.png" ) --position the image increases local x, y, z = -1337.2880859375, -128.0078125, 14.1484375 --position the image increases v= 0 local TextColor = tocolor( 255,255,255,255 ) addEventHandler( "onClientRender", root, function() if gamemode == "Deathmatch" then TextColor = tocolor( 255,255,255,160 ) end v = v+1 outputDebugString(v) if v == 20 then v = 0 outputDebugString(v) end dxDrawMaterialLine3D( x, y, z, x, y+v, z , material, v, TextColor, x, y, z-1) end ) Edited March 19, 2014 by Guest Link to comment
Bonsai Posted March 18, 2014 Share Posted March 18, 2014 If I would understand the question Link to comment
ZL|LuCaS Posted March 19, 2014 Author Share Posted March 19, 2014 If I would understand the question I want the image increase from the middle out is increasing wrong. Link to comment
ZL|LuCaS Posted March 19, 2014 Author Share Posted March 19, 2014 If I would understand the question I want the image increase from the middle out is increasing wrong. https://www.youtube.com/watch?v=_7byiAx04fU video bug <<<<<<< Link to comment
Bonsai Posted March 19, 2014 Share Posted March 19, 2014 Ahh, now I get it. You also have to change the x,y of the image, since its always the upper left corner, not the center. So try to use something like this: dxDrawMaterialLine3D( x, y-(v/2), z, x, y+v, z , material, v, TextColor, x, y, z-1) Link to comment
ZL|LuCaS Posted March 19, 2014 Author Share Posted March 19, 2014 I'm testing thank you very much Bonsai. Link to comment
ZL|LuCaS Posted March 19, 2014 Author Share Posted March 19, 2014 e possível deixar redonda Link to comment
Bonsai Posted March 19, 2014 Share Posted March 19, 2014 To make it a circle you will have to edit x. dxDrawMaterialLine3D( x-(v/2), y-(v/2), z, x+v, y+v, z , material, v, TextColor, x, y, z-1) Link to comment
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