HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Error?

01-23-2007, 12:37 AM#1
Mapz_Maker
Is the movement speed what you thought it was? check this out, the example displays how much a unit actually moves on the map, not exactly what the editor says...
Attached Files
File type: w3xGetWidgetMoveSpeedTest.w3x (16.8 KB)
01-23-2007, 02:47 AM#2
Av3n
Thats cause you might of done it wrong

-Av3n
01-23-2007, 03:50 AM#3
Ammorth
Yep, using TriggerSleepAction is not acurate. Use a timer for the correct time.

Edit: Added a demo map to prove it.

Also note the slight difference is due to real rounding error. If you get the unit to walk in a horizontal or vertical path, the difference will become less.
Attached Files
File type: w3xrealMoveSpeed.w3x (16.9 KB)
01-25-2007, 09:13 PM#4
Mapz_Maker
ok, did not realize, but that is always good to know (timers = better) but im still not entirely convinced that it is what you set it to be...
Quote:
Originally Posted by Ammorth
Also note the slight difference is due to real rounding error. If you get the unit to walk in a horizontal or vertical path, the difference will become less
01-26-2007, 12:02 AM#5
Ammorth
Since the distance between points function uses pythag, taking the square root of 0 has no decimal places to drop because of rounding, versus the square root of 21 (which is irrational). The less the amount of time the game has to round a decimal, the more precises your calculations will become.