Jump to content

مساعدة


Zed159

Recommended Posts

Posted

السلام عليكم

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

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

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

Fade effect*

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

و شكرا !

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

 

Posted (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)

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

:D

 

Edited by Master_MTA
رقم خطا

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...