Zed159 Posted September 9, 2019 Share Posted September 9, 2019 السلام عليكم ممكن مثال عن كيف أسوي dxDrawRectangle + dxDrawText Alpha تروح من 200 إلى 50 بشكل مستمر ما توقف Fade effect* تروح من 200 إلى 50 بعدين من 50 إلى 200 و شكرا ! Link to comment
Jw8. Posted September 11, 2019 Share Posted September 11, 2019 alpha = 50 -- if alpha > 200 then alpha = 50 end alpha = alpha + 1 dxDrawRectangle ( x, y, w, h, tocolor ( 0, 0, 0, alpha ) ) -- example Link to comment
nxFairlywell Posted September 11, 2019 Share Posted September 11, 2019 راجع الموضوع هذا @DmAr511 طلبه مختلف Link to comment
Master_MTA Posted September 12, 2019 Share Posted September 12, 2019 (edited) عندك طريقتين interpolateBetween+getTickCount الطريقه الثانيه alpha=200 flipped=true addEventHandler("onClientRender",root,function() alpha=(flipped==true and (alpha-1))or alpha+1 dxDrawRectangle ( 200, 200, 200, 200, tocolor ( 0, 0, 0, alpha ) ) flipped=(alpha>=200 and true)or(alpha<=50 and false) or flipped end) غالبا كذا لو ما اشتغل قولي لان لي فتره طويله عن اللعبه Edited September 12, 2019 by Master_MTA رقم خطا 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