Language

Entity:setActive


Entity:setActive(boolean active)

Description

Set the active status of the entity. An inactive entity will never draw itself and will never update.
If you call this function on a solid sprite or rectangle, the player will be killed if he is in it.

Parameters

active
If the entity should be active or not.