mass = GenGetSpriteMass(sprite)

Returns the sprite's mass. By default the sprite's mass is it's initial width x height. This makes the mass proportional to a sprite's initial size. The sprite mass may be set using the GenSetSpriteMass command. The sprite mass is used in collisions and damage calculations.

Damage = mass * ave_velocity_colliding_sprites * 0.0001 + 1

Game Engine Overview

Become a Patron