Jump to content

تصحيح كود Xx[تعديل]Xx


Recommended Posts

function dxDrawlogo() 
local screenW,screenH=guiGetScreenSize() 
local start = getTickCount() 
local a, b = (screenW - 185) / 2, (screenH - 800) / 2 
local x1, y1 = (screenW - 1280) / 2, (screenH - 800) / 2 
addEventHandler("onClientRender",root, 
function() 
local now = getTickCount() 
local x, y = interpolateBetween(a, b, 0, x1, y1, 0, (now - start) / 1500, "OutBack") 
dxDrawImage(x, y, 1280, 800, "mm.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) -- full 
end 
) 
end 

ابي هاي الكود يخلي الصوره تتحرك بس هو خربان ياريت مساعده

:mrgreen:

Link to comment
  
local sx, sy = guiGetScreenSize() 
local start = getTickCount() 
local a1, a2 = (sx-300)/2, 0  
local b1, b2 = (sx-300)/2, (sy-300)/2 
  
addEventHandler("onClientRender", root, 
function() 
    local now = getTickCount() 
    local x, y = interpolateBetween(a1, a2, 0, b1, b2, 0, (now - start) / ((start + 1500) - start), "OutBack") 
    dxDrawImage(x, y, 300, 300, "mm.png") 
end) 
  

Link to comment
عندك العمليات الحسابيه مضروبه, وعندك اشياء مب مسويها يعني مب معدل الطول والعرض ...

+ ؟ OutBack تدري وش تسوي

فيه شروحات بالقسم ابحث عنها وشوف يمكن تفيدك..

الحسابات م اعرف لها كثير +

هات رابط الشرح لاهنت

Link to comment

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...