™!>VàLéNTiNô<!™ Posted October 4, 2014 Share Posted October 4, 2014 >>>>>>>>>>>>>>>>>>>>> السلام عليكم ورحمة الله وبركاته <<<<<<<<<<<<<<<<<<<< ومازالت مشاكل ال DxDraw تلاحقنى طبعا هذا اتبه فنكشن بال Dx واظن ان الكل يستخدم بس مشكلتى هنا حركته اللى يميز ال Dx عن ال Gui انه له حركاته واشكاله الجميلة المشكلة هنا انى تعبت من كتر التجارب والارقمنات اللى ابدلها وابى افهم ها الفنكشن جزء جزء وياريت احد يقدم شرح كامل عن فنكشنات ال Dx لانها صراحة تحتاج فهم انا الحين سويت DxDrawImage وابيه اخليه يلف فى دائرة مستمرة مايوقف local screenWidth,screenHeight = guiGetScreenSize() -- Get screen resolution. function renderDisplay ( ) local seconds = getTickCount() / 1000 local angle = math.sin(seconds) * 80 -- This will draw the graphic file 'arrow.png' at the top middle of the screen -- using the size of 100 pixels wide, and 240 pixels high. -- The center of rotation is at the top of the image. dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'arrow.png', angle, 0, -120 ) end function HandleTheRendering ( ) addEventHandler("onClientRender", getRootElement(), renderDisplay) -- Keep everything visible with onClientRender. end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering) كود الويكى عبارة عن Dx باسم arrow بصيغة png يروح يمين ويسار مثل فانوس رمضان فكرة حلوة لمود فى رمضان ^_~ المهم حاولت اغير الضرب اللى فى 80 فى المتغير angle ماطلع الشكل المظبوط غيرت كل مايمكن تغييره وسويت ال dx باحداثيات تانية فى نص الشاشة مو المشكلة هنا المشكلة فى حركته واشكاله مافهمها وابى شرح مفصل ليها بعد اذنكم طبعا بانتظار الافادة Thank You وشكرا Link to comment
</Mr.Tn6eL> Posted October 6, 2014 Share Posted October 6, 2014 local rotation = math.abs(getTickCount( )/10) حطه بالرندر اذ كنت تبي الدائرة مستمرة 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