View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0025012||Runner||[All Projects] General||Public||2016-12-21 10:24||2020-01-23 10:30|
|Reporter||Mark Alexander||Assigned To||Fritz|
|Priority||Low||Severity||D - Minor||Reproducibility||100%|
|Target Version||Fixed in Version|
|Summary||0025012: Functions: Fix path_get_time() to be useful|
|Description||I was tasked with documenting the function "path_get_time" the other day and on investigation I could find no way to get this function to work how I assumed. Namely, that you supply a path and a speed, and the function will return how long it will take to traverse the path at the constant speed given.|
Now, on testing, I was getting weird values returned that did not correlate to the time taken to traverse the path in any way, so I asked about it and was informed that it simply returns the path length multiplied by the speed given. This makes little sense to me, and I can't really work out how that correlates to time.
So, I would say that the the function is broken and should be fixed to do just what it appears it should do, ie:
The function will return the time it takes to travel the path from start to finish given a constant speed (based on the current room speed).
|1.4 Found In|
|2.x Runtime Found In|
|2.x Runtime Verified In|
||I think this is moot since the function is not in the documentation at the moment - but the number is a bit dubious - though this is how GM8 did it|
||I've removed the path_get_time function as it wasn't documented, didn't work had no html5 implementation and would require a large amount of work in order to return the correct results|