Sign in to follow this  
Zed159

مساعدة

Recommended Posts

السلام عليكم

ممكن مثال عن كيف أسوي dxDrawRectangle + dxDrawText

Alpha تروح من 200 إلى 50

بشكل مستمر ما توقف

Fade effect*

تروح من 200 إلى 50 بعدين من 50 إلى 200

و شكرا !

Share this post


Link to post
alpha = 50
--
if alpha > 200 then
alpha = 50
end
alpha = alpha + 1
dxDrawRectangle ( x, y, w, h, tocolor ( 0, 0, 0, alpha ) ) -- example

 

Share this post


Link to post

عندك طريقتين 

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)

غالبا كذا لو ما اشتغل قولي لان لي فتره طويله عن اللعبه 

:D

 

Edited by Master_MTA
رقم خطا

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.