Ryan1010 Posted November 3, 2010 Posted November 3, 2010 When ever i used this code ... a = createObject(8397,145.07537842,-4236.64062500,10.53046608,0.00000000,0.00000000,0.00000000) b = createObject(8397,154.71527100,-4236.63330078,10.53046608,0.00000000,0.00000000,0.00000000) c = createObject(8397,164.10713196,-4236.66796875,10.53046608,0.00000000,0.00000000,0.00000000) d = createObject(8620,313.79312134,-3912.51977539,23.77605057,0.00000000,0.00000000,0.00000000) e = createObject(8620,312.52349854,-3855.06738281,23.77605057,0.00000000,0.00000000,0.00000000) f = createObject(8620,261.70608521,-3864.51269531,23.77605057,0.00000000,0.00000000,0.00000000) g = createObject(8620,290.12689209,-3794.57031250,23.77605057,0.00000000,0.00000000,0.00000000) function rotation() if rampState == false then rampState = true moveObject ( a, 19000,145.07537842,-4236.64062500,10.53046608,0.00000000,0.00000000,360.00000000) moveObject ( b, 19000,154.71527100,-4236.63330078,10.53046608,0.00000000,0.00000000,360.00000000) moveObject ( c, 19000,164.10713196,-4236.66796875,10.53046608,0.00000000,0.00000000,360.00000000) moveObject ( d, 30000,313.79312134,-3912.51977539,23.77605057,0.00000000,0.00000000,360.00000000) moveObject ( e, 30000,312.52349854,-3855.06738281,23.77605057,0.00000000,0.00000000,360.00000000) moveObject ( f, 30000,261.70608521,-3864.51269531,23.77605057,0.00000000,0.00000000,360.00000000) moveObject ( g, 30000,290.12689209,-3794.57031250,23.77605057,0.00000000,0.00000000,360.00000000) else rampState = false moveObject ( a, 19000,145.07537842,-4236.64062500,10.53046608,0.00000000,0.00000000,0.00000000) moveObject ( b, 19000,154.71527100,-4236.63330078,10.53046608,0.00000000,0.00000000,0.00000000) moveObject ( c, 19000,164.10713196,-4236.66796875,10.53046608,0.00000000,0.00000000,0.00000000) moveObject ( d, 30000,313.79312134,-3912.51977539,23.77605057,0.00000000,0.00000000,0.00000000) moveObject ( e, 30000,312.52349854,-3855.06738281,23.77605057,0.00000000,0.00000000,0.00000000) moveObject ( f, 30000,261.70608521,-3864.51269531,23.77605057,0.00000000,0.00000000,0.00000000) moveObject ( g, 30000,290.12689209,-3794.57031250,23.77605057,0.00000000,0.00000000,0.00000000) end end setTimer ( rotation, 100, 0) about 2 minutes later, i start to lag, then more and more, what can i do to fix it?
dzek (varez) Posted November 3, 2010 Posted November 3, 2010 looks fine. dunno wtf? maybe try to set new timer after moving objects (and set repeats to "1" !)
Ryan1010 Posted November 3, 2010 Author Posted November 3, 2010 I tried that before, still does that same thing.
50p Posted November 4, 2010 Posted November 4, 2010 To me, it's stupid to set a timer with interval of 100 and moveObject to move object to new position within 30000... This will obviously lag. Either, change the timer or moveObject arguments.
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