English Tween_move doesnt move in time

4 replies
Goto Page
To the start Previous 1 Next To the start
Up
Edik
User
Offline Off
Hi, i use the following code to move a picture:
Code:
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?
05.08.18 02:07:31 am
Up
Rainoth
Moderator
Offline Off
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.
05.08.18 03:53:04 am
Up
Edik
User
Offline Off
Code:
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.
05.08.18 06:27:35 am
Up
Devil-Thanh
GAME BANNED
Offline Off
61k? I assume it's 65535
05.08.18 09:09:12 am
Up
DC
Admin
Offline Off
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
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
To the start Previous 1 Next To the start