+Source|> Posted May 25, 2017 Share Posted May 25, 2017 سلام عليكم ابي اعرف كيف اسوي اوبجكت يتحرك بدون ماركر مثل المصعد لحاله يتحرك.. شكراا Link to comment
MR.StoRm Posted May 25, 2017 Share Posted May 25, 2017 7 minutes ago, A7MEDENO said: سلام عليكم ابي اعرف كيف اسوي اوبجكت يتحرك بدون ماركر مثل المصعد لحاله يتحرك.. شكراا moveObject Link to comment
+Source|> Posted May 25, 2017 Author Share Posted May 25, 2017 (edited) Door3 = createObject( 2643,2484.5,-1663.5999755859,12.5,270,0,0 ) moveObject(Door3,2000,2498.6999511719,-1664.4000244141,12.5 ) setTimer( function() moveObject(Door3,2000,2643,2484.5,-1663.5999755859,12.5,270,0,0 ) end,2000,1) ابس المشكله ان الاوبجكت يتحرك بعدها يختفي ابيه يروح ويرجع Edited May 25, 2017 by A7MEDENO Link to comment
` Allawi Posted May 25, 2017 Share Posted May 25, 2017 (edited) عندك أرقمنت زائد وخاطئ Edited May 25, 2017 by ` Allawi Link to comment
AHMED MOSTAFA Posted May 25, 2017 Share Posted May 25, 2017 (edited) 9 hours ago, A7MEDENO said: Door3 = createObject( 2643,2484.5,-1663.5999755859,12.5,270,0,0 ) moveObject(Door3,2000,2498.6999511719,-1664.4000244141,12.5 ) setTimer( function() moveObject(Door3,2000,2643,2484.5,-1663.5999755859,12.5,270,0,0 ) end,2000,1) ابس المشكله ان الاوبجكت يتحرك بعدها يختفي ابيه يروح ويرجع طيب شوف سوي تايمر - لو تبيه متحرك على طول واستخدم احد المتغيرات مثلاً move = 1 وبعدها استخدم moveObject مثال move = 1 object = createObject ( ... ) setTimer ( function () if move == 1 then move = 2 moveObject ( .... ) elseif move == 2 then move = 1 moveObject ( .... ) end end, 15000, 0 ) Edited May 25, 2017 by Killer Project Link to comment
+Source|> Posted May 25, 2017 Author Share Posted May 25, 2017 5 minutes ago, Killer Project said: يختفي !!! طيب شوف سوي تايمر واستخدم احد المتغيرات مثلاً move = 1 وبعدها استخدم moveObject مثال move = 1 object = createObject ( ... ) setTimer ( function () if move == 1 then move = 2 moveObject ( .... ) elseif move == 2 then move = 1 moveObject ( .... ) end end, 15000, 0 ) لا برضو توصل للنهاية وتختفي Link to comment
AHMED MOSTAFA Posted May 25, 2017 Share Posted May 25, 2017 9 hours ago, A7MEDENO said: لا برضو توصل للنهاية وتختفي moveObject المشكلة من عندك في الـ Link to comment
+Source|> Posted May 25, 2017 Author Share Posted May 25, 2017 Just now, Killer Project said: moveObject المشكلة من عندك في الـ وين المشكلة سويت اوبجيكت وحركته move = 1 object = createObject ( 2643,2484.5,-1663.5999755859,12.5,270,0,0 ) setTimer ( function () if move == 1 then move = 2 moveObject ( object,2000,2498.6999511719,-1664.4000244141,12.5 ) elseif move == 2 then move = 1 moveObject ( object,2000,2643,2484.5,-1663.5999755859,12.5 ) end end, 500, 1 ) Link to comment
AHMED MOSTAFA Posted May 25, 2017 Share Posted May 25, 2017 في مثالك انت .. عندك ارجمنت زائد ف الارجمنت رقم 5 Link to comment
+Source|> Posted May 25, 2017 Author Share Posted May 25, 2017 (edited) 2 minutes ago, Killer Project said: في مثالك انت .. عندك ارجمنت زائد ف الارجمنت رقم 5 حذفته وما انحلت Edited May 25, 2017 by A7MEDENO Link to comment
AHMED MOSTAFA Posted May 25, 2017 Share Posted May 25, 2017 (edited) move = 1 object = createObject ( 2643,2484.5,-1663.5999755859,12.5,270,0,0 ) setTimer ( function () if move == 1 then move = 2 moveObject ( object,2000,2498.7,-1663.6,12.5 ) elseif move == 2 then move = 1 moveObject ( object,2000,2484.5,-1663.6,12.5 ) end end, 15000, 0 ) Edited May 25, 2017 by Killer Project Link to comment
+Source|> Posted May 25, 2017 Author Share Posted May 25, 2017 (edited) 2 minutes ago, Killer Project said: move = 1 object = createObject ( 2643,2484.5,-1663.5999755859,12.5,270,0,0 ) setTimer ( function () if move == 1 then move = 2 moveObject ( object,2000,2498.7,-1663.6,12.5 ) elseif move == 2 then move = 1 moveObject ( object,2000,2484.5,-1663.6,12.5 ) end end, 500, 1 ) صارر يوصل للنهاية ويثبت ما يرجع move = 1 object = createObject ( 2643,2484.5,-1663.5999755859,12.5,270,0,0 ) setTimer ( function () if move == 1 then move = 2 moveObject ( object,2000,2498.7,-1663.6,12.5 ) elseif move == 2 then move = 1 moveObject ( object,2000,2643,2484.5,-1663.5999755859,12.5 ) end end, 500, 1 ) صار الاوبجكت يصل للنهية ويوقف وش الحل؟؟ Edited May 25, 2017 by A7MEDENO Link to comment
AHMED MOSTAFA Posted May 25, 2017 Share Posted May 25, 2017 9 hours ago, A7MEDENO said: حذفته وما صار شي اطلع شوفه مرة ثانية انا مش شايف اخطاء بصراحة Link to comment
+Source|> Posted May 25, 2017 Author Share Posted May 25, 2017 Just now, Killer Project said: اطلع شوفه مرة ثانية انا مش شايف اخطاء بصراحة طيب هو صار يتجرك ويوصل للنهاية ما يرجع يثببت Link to comment
^iiEcoo'x_) Posted May 25, 2017 Share Posted May 25, 2017 7 minutes ago, A7MEDENO said: صارر يوصل للنهاية ويثبت ما يرجع move = 1 object = createObject ( 2643,2484.5,-1663.5999755859,12.5,270,0,0 ) setTimer ( function () if move == 1 then move = 2 moveObject ( object,2000,2498.7,-1663.6,12.5 ) elseif move == 2 then move = 1 moveObject ( object,2000,2643,2484.5,-1663.5999755859,12.5 ) end end, 500, 1 ) صار الاوبجكت يصل للنهية ويوقف وش الحل؟؟ خطأ Link to comment
+Source|> Posted May 25, 2017 Author Share Posted May 25, 2017 Just now, #_iMr.[E]coo said: خطأ وش الصح Link to comment
^iiEcoo'x_) Posted May 25, 2017 Share Posted May 25, 2017 Just now, A7MEDENO said: وش الصح في شروحات مليانة باليوتيوب للكيف تسوي مصعد Link to comment
Mhmd.z Posted May 25, 2017 Share Posted May 25, 2017 (edited) move = 1 object = createObject ( 2643,2484.5,-1663.5999755859,12.5,270,0,0 ) setTimer ( function () if move == 1 then move = 2 moveObject ( object,2000,2498.7,-1663.6,12.5 ) elseif move == 2 then move = 1 moveObject ( object,2000,2643,2484.5,-1663.5999755859,12.5 ) end end, 5000, 0) Edited May 25, 2017 by Mhmd.z Link to comment
AHMED MOSTAFA Posted May 25, 2017 Share Posted May 25, 2017 9 hours ago, A7MEDENO said: طيب هو صار يتجرك ويوصل للنهاية ما يرجع يثببت يتحرك بعد 15 ثانية هل انتظرت ولا لا ؟ Link to comment
+Source|> Posted May 25, 2017 Author Share Posted May 25, 2017 Just now, Killer Project said: يتحرك بعد 15 ثانية هل انتظرت ولا لا ؟ انتظرت Link to comment
AHMED MOSTAFA Posted May 25, 2017 Share Posted May 25, 2017 9 hours ago, Mhmd.z said: move = 1 object = createObject ( 2643,2484.5,-1663.5999755859,12.5,270,0,0 ) setTimer ( function () if move == 1 then move = 2 moveObject ( object,2000,2498.7,-1663.6,12.5 ) elseif move == 2 then move = 1 moveObject ( object,2000,2643,2484.5,-1663.5999755859,12.5 ) end end, 500, 0) فيه ارجمنت غلط موجود في moveObject الثانية الارجمنت رقم 3 9 hours ago, A7MEDENO said: انتظرت طيب اطرح المثال اللي انت مسويه بالضبط في الملف حقك Link to comment
+Source|> Posted May 25, 2017 Author Share Posted May 25, 2017 2 minutes ago, Killer Project said: فيه ارجمنت غلط موجود في moveObject الثانية الارجمنت رقم 3 طيب اطرح المثال اللي انت مسويه بالضبط في الملف حقك اوك هذا المثال move = 1 object = createObject ( 2643,2477.1999511719,-1666.5,12.5,270,0,0 ) setTimer ( function () if move == 1 then move = 2 moveObject ( object,2000,2492.8999023438,-1666.1999511719,12.5 ) elseif move == 2 then move = 1 moveObject ( object,2000,2643,2477.1999511719,-1666.5,12.5 ) end end, 500, 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