CreatePhysicsForce

Description

Creates a global force that affects all physics sprites. Can be set to either attract to or repel sprites from a specific location. It returns a force ID that can be used to modify or delete the force later. Forces continue to act until they are deleted.

Definition

integer CreatePhysicsForce( x, y, power, limit, range, fade )

Parameters