sub SetSpriteGravity(x, y)
Use this function for setting the global gravity vector.
Related:
GetSpriteGravity