Forum

> > CS2D > Scripts > Tween_move doesnt move in time
Forums overviewCS2D overview Scripts overviewLog in to reply

English Tween_move doesnt move in time

4 replies
To the start Previous 1 Next To the start

old Tween_move doesnt move in time

Edik
User Off Offline

Quote
Hi, i use the following code to move a picture:
1
tween_move(imgid,80000,endpoint[1],endpoint[2])
80000ms = 80 sec
but the img moves always in less time the picture to the destination. I count about 12-15secs. Can someone explain?

old Re: Tween_move doesnt move in time

Rainoth
Moderator Off Offline

Quote
Could you provide the full code?
I can't really think of many things that could screw it up like this, or it's a bug. Knowing that it's not the fault of the script, would certainly help.

old Re: Tween_move doesnt move in time

Edik
User Off Offline

Quote
1
2
3
4
function piccreate()
	imgid = image("gfx/m/pic.png",0,0,3)
	tween_move(imgid,80000,500,500)
end

I dont know what I should show more, next part is that i call this function.
I played a little bit with it and found out that everything to 61000 works fine.

old Re: Tween_move doesnt move in time

DC
Admin Off Offline

Quote
user SQ optimized most network packages some versions ago and didn't take all wild use-cases into consideration. So yes, the duration is capped at 65535 with the current implementation. That would be 65,5 secs.

This is a bug because it's not documented like this and it makes no sense to cap it at 65 seconds. Will fix for 1.0.0.8.
This issue affects all tweens.
edited 2×, last 05.08.18 09:45:30 am
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview