Post by SwordGrunt on Sept 22, 2015 18:44:03 GMT -8
When I was working on 'Just Wing It V2', something intrigued me. I checked my math several timez and I'm sure I was not wrong. However, for some reason, the Object Guard simply would not sync up with the Rolling Ball the way I wanted him to. This screenshot will help you understand:
The red square is the Object Guard's path, while the white rectangle is the Rolling Ball's path.
The Object Guard is assumed to have the base speed of 600 ms, while the Rolling Ball has its speed set at 400 ms.
Now, it is known that Object Guardz behave in odd wayz upon spawning, sometimes walking back and forth on their first go before getting into their regular path. However, this only affects his relative position to the ball at that moment, but not his relative speed...
Look at their pathz. The Object Guard's rotation is 8 tilez, while the Rolling Ball's is 12 tilez. Therefore, both of them should take 8x600 = 12x400 = 4800 ms to do a full lap - and therefore they should keep their relative positionz the same, assuming neither one stops moving or changes direction. However, what is seen is that the Object Guard eventually gets ahead in the 'race' with the Rolling Ball - so much that he gets half a lap ahead, and then stops before the Rolling Ball as the two nearly cross pathz. This unexpected behavior intrigued me and I simply could not figure out what was wrong, but since the Grunt's AI prevents him from squashing himself in the Rolling Ball, I left it that way.
This means that either the Gruntz speed valuez are not perfectly accurate - that is, not 600 ms - or something is altering the Rolling Ball's speed. Perhaps when it reaches an arrow, there is a game tick where it is not moving, while it changes direction? That would delay the Rolling Ball and, therefore, set the Object Guard farther away from it in relative position. Whatever it is, I will try to do similar thingz in my future levelz to try and reproduce this in different wayz with Object Guardz.
Update: since this also happens with auto-toggling timed bridgez, it can't be related to the object speed - I had a Toobz Object Guard swimming in a set of bridgez that would toggle with an interval of 1000 ms, which is the speed of a swimming Grunt, and he would slowly catch up to the raised bridgez in a similar way as what I described with the Rolling Ballz. It feels as if the speed of Gruntz was close, but not exactly the amount that we know - for example, 580 ms instead of 600...