Jump to content

طلب


Recommended Posts

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 by Killer Project
Link to comment
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
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
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 by Killer Project
Link to comment
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 by A7MEDENO
Link to comment
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
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 by Mhmd.z
Link to comment
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...