Wleed1998 Posted August 3, 2016 Posted August 3, 2016 مممكن الفانكشن و مثال عليه ابي احرك ليبل من مكان لـ مكآن + ابي لما آجيب الماوس على صوره تصير الشافافيه 100 انا حاط الصوره شففيتها 50 ابي لما يجي علي يحدد تصير 100 لين يطلع منه ثمن ترجع 50 ض1
فاّرس Posted August 3, 2016 Posted August 3, 2016 "onClientMouseEnter" "onClientMouseLeave" guiSetPosition -- عشان تحرك الليبل guiSetAlpha -- عشان تعدل الشفافيه
Wleed1998 Posted August 4, 2016 Author Posted August 4, 2016 "onClientMouseEnter" "onClientMouseLeave" guiSetPosition -- عشان تحرك الليبل guiSetAlpha -- عشان تعدل الشفافيه ممكن مثال او شرح ي ليت لان الاحدثيات guiSetPosition
^iiEcoo'x_) Posted August 4, 2016 Posted August 4, 2016 تبيه بنافذة يتحرك من يمين ل يسار local againStartMove = 100 -- يبدأ لما ينتهي من local endMove = 400 -- يوقف لما تبيه يرجع عند addEventHandler("onClientRender",root,function() if ( guiGetVisible(YouWindowNme) == true ) then local x,y = guiGetPosition(YouLabelName,false) guiSetPosition(YouLabelName,x + 3,y,false) if ( x >= endMove ) then guiSetPosition(YouLabelName,againStartMove,y,false) end end end) بدون ناففذة local againStartMove = 100 local endMove = 400 addEventHandler("onClientRender",root,function() local x,y = guiGetPosition(YouLabelName,false) guiSetPosition(YouLabelName,x + 3,y,false) if ( x >= endMove ) then guiSetPosition(YouLabelName,againStartMove,y,false) end end)
فاّرس Posted August 4, 2016 Posted August 4, 2016 (edited) ^ كذا ماراح يتحرك الليبل، راح يطير، يا انك تقلل العدد اللي تزيده او تستخدم التايمر Edited August 4, 2016 by Guest
Wleed1998 Posted August 4, 2016 Author Posted August 4, 2016 ^ كذا ماراح يتحرك الليبل، راح يطير، يا انك تقلل العدد اللي تزيده او تستخدم التايمروعندك خطأ سطر ٦ و ٧، مستخدم متغيرين بسطر واحد ومو فاصل بين القيمتين بفاصله. انا ابيه يتحرك من يمين لـ يسار لمنصف الشاشه ثمن يقف 2 ثانيه ثمن يرجع مكآنه الاول و يختفي ابي بس شرح الاحدثيات لانه صعبه شوي ض1
فاّرس Posted August 4, 2016 Posted August 4, 2016 guiSetPosition مافيه شي صعب استخدم x واستخدم معها التايمر وزود قيمة احداثي وسوي تايمر ثاني يرجعه لنفس مكانه، سهله، القسم مليان اكواد زي كذا
Wleed1998 Posted August 4, 2016 Author Posted August 4, 2016 guiSetPosition مافيه شي صعب استخدمx واستخدم معها التايمر وزود قيمة احداثي وسوي تايمر ثاني يرجعه لنفس مكانه، سهله، القسم مليان اكواد زي كذا الان انا حطيت شوف ذا اليبل يتحرك يسار لين مكان مآبدي لكن مايرجع local againStartMove = 1183 local endMove = 498 addEventHandler("onClientRender",root,function() local x,y = guiGetPosition(GUIEditor.label[1],false) guiSetPosition(GUIEditor.label[1],x + 1,y,false) if ( x >= endMove ) then guiSetPosition(GUIEditor.label[1],x -1,y,false) end end) وانا حاط في الاو ل +1 ولما ابي ارجع اخلي -1
Wleed1998 Posted August 6, 2016 Author Posted August 6, 2016 ويت كذا لكن الليبل مايتحرك آبدآ ض1 function set1( ) local x, y = guiGetPosition ( GUIEditor.label[1], false ) if x > 1000 then return end guiSetPosition ( GUIEditor.label[1], x + 2, y, false ) end function set2 ( ) local x, y = guiGetPosition ( GUIEditor.label[1], false ) if x < 150 then return setTimer ( set1, 5000, 1, GUIEditor.label[1],x ) end guiSetPosition ( GUIEditor.label[1], x - 2, y, false ) end
Wleed1998 Posted August 6, 2016 Author Posted August 6, 2016 ردو يـآ جمآعه ردو ابي ليبل متحر يمشي من اليسار الى اليمين و يوقف في نصف الشاشه ثمن يرجع يسار الى مكآنه الاول طريقتي الي فوق كيف يـ شبآب
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