PlayerControl manages the player's control state, determining if the player is controllable and able to perform actions like moving, shooting, etc.
PlayerControl
Before Platformer Engine 2.1, PlayerControl was located inside PlayerStats.
Controllable ( bool ) / Public get / Private setReturns true if the player can be controlled.Returns the value of "controllable"
Controllable ( bool ) / Public get / Private set
Returns true if the player can be controlled.
Returns the value of "controllable"
Grant Control()Force Controllable to be true.
Grant Control()
Force Controllable to be true.
Lose Control()Force Controllable to be false.
Lose Control()
Force Controllable to be false.
CheckIfCanGrantControl()Checks if the game is paused before providing control to the player. Recommended usage over GrantControl to avoid issues.
CheckIfCanGrantControl()
Checks if the game is paused before providing control to the player.
Recommended usage over GrantControl to avoid issues.
Last updated 6 months ago