MR.GRAND Posted June 18, 2016 Share Posted June 18, 2016 local start = getTickCount() GUIEditor = { label = {} } GUIEditor.label[1] = guiCreateLabel(754, 434, 602, 27, "هلا والله نورت , كيف حالك ي مزز", false) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") function drawFirst() local now = getTickCount() local progress = (now - start) / ((start + 1500) - start) local x, y = interpolateBetween(1366, 434, 0, 754, 434, 0, progress, "OutBack") --dxDrawImage(x, y, 300, 300, "Image.jpg") guiSetPosition ( GUIEditor.label[1], x, y, false ) setTimer( function( ) removeEventHandler( 'onClientRender', root, drawFirst ) addEventHandler( 'onClientRender', root, function( ) local now = getTickCount() local progress = (now - start) / ((start + 1500) - start) local x, y = interpolateBetween(754, 434, 0, 1352, 434, 0, progress, "OutBack") guiSetPosition ( GUIEditor.label[1], x, y, false ) end ) end, 2000, 1 ) end addEventHandler( "onClientRender", root, drawFirst ) يفترض انه من السطر 20 وتحت يسوي الغاء للأنتر بوليت الأول والحدث كله ويحط حدث ترجيع مكان الليبل بنفس الطريقة اللي جاء بها بالأنتر بوليت لآكن انه يخفي الليبل اخفاء مايرجعه بالشكل اللي جاء به Link to comment
فاّرس Posted June 18, 2016 Share Posted June 18, 2016 طلع التايمر من الرندر وجرب, setTimer( function( ) removeEventHandler( 'onClientRender', root, drawFirst ) addEventHandler( 'onClientRender', root, function( ) if not starte then starte = getTickCount ( ) end if not en then en = getTickCount ( ) + 3500 end local now = getTickCount() local progress = ( now - starte ) / ( en - starte ) local x, y = interpolateBetween(754, 434, 0, 1352, 434, 0, progress, "OutBack") guiSetPosition ( GUIEditor.label[1], x, y, false ) end ) end, 2000, 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