Jw8. Posted July 25, 2019 Share Posted July 25, 2019 سلام عليكم عندي مشكله بمقياس الشاشه انا مسوي حركه لصورة طيب كل مااحطه تجي الصورة مخربطه ولما اشيل الحركة تجي ظابطه local x = interpolateBetween ( 0, 0, 0, rx*457, 0, 0, ( getTickCount() - ( tick or 0 ) ) / 5000, "Linear" ) dxDrawImage(rx*241, ry*156, x, x, "images/main.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) -- مع حركه -- rx*241, ry*156, rx*543, ry*457 -- بدون حركه Link to comment
+Source|> Posted July 26, 2019 Share Posted July 26, 2019 (edited) 7 hours ago, DmAr511 said: سلام عليكم عندي مشكله بمقياس الشاشه انا مسوي حركه لصورة طيب كل مااحطه تجي الصورة مخربطه ولما اشيل الحركة تجي ظابطه local x = interpolateBetween ( 0, 0, 0, rx*457, 0, 0, ( getTickCount() - ( tick or 0 ) ) / 5000, "Linear" ) dxDrawImage(rx*241, ry*156, x, x, "images/main.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) -- مع حركه -- rx*241, ry*156, rx*543, ry*457 -- بدون حركه في احداثيات ناقصه هنا بعد ال rx*457, ... local x = interpolateBetween ( 0, 0, 0, rx*457, 0, 0, ( getTickCount() - ( tick or 0 ) ) / 5000, "Linear" ) Edited July 26, 2019 by +Source|> Link to comment
' A F . Posted July 26, 2019 Share Posted July 26, 2019 عندك مشكلة بـ القياسات سويها زي كذا local rx,ry = guiGetScreenSize ( ) ; tick = getTickCount ( ) addEventHandler ( "onClientRender" , root , function ( ) local x = interpolateBetween ( 0, 0, 0, rx*457/800, 0, 0, ( getTickCount() - ( tick or 0 ) ) / 5000, "Linear" ) dxDrawImage(rx*241/800, ry*156/600, x, x, "bg.jpg", 0, 0, 0, tocolor(255, 255, 255, 255), false) -- مع حركه end ) انا حطيت مقاسات شاشتي انت سويها ع مقاس شاشتك مثلا rx*241/800,ry*156/600 Link to comment
Jw8. Posted July 26, 2019 Author Share Posted July 26, 2019 خلاص حليت المشكله بعد ماعملت الموضوع خخخ #يغلق 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