Thanks. Do you know why velocityX and velocityY are not recorded with a powerupPickup or powerupAutoUse event? They are always equal to 0. My idea was to use Health pickup as a nice way to checkpoint a player's progress. The Health would be strategically placed around the map.
velocityX and velocityY are recorded when you pickup a Ball. I am not sure about a Nuke or Plant Mine.
Thanks.
[UPDATE]
I wanted to update my own question in case anyone stumbles upon it and gets confused. The reason the velocity is 0 is because these values are tied to the powerup, not the plane. If a person dies with a powerup and it is caught while falling, it will have a velocity. You often see velocity values for ball pickups, becuase the ball is often in motion. velocityX and velocityY are correct as is, and do not need to be fixed.
It would be cool if a "playerVelocityX" and "playerVelocityY" were also reported, but I imagine this to be a non-trivial addition, and therefore unlikely.
[/UPDATE]
Last edited by biell; 07-07-2015 at 10:25 PM.
Reason: Answered my own question
|