From ecbe17b582803aaeaa9ccee88a3d093ff93a6cd3 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 21 Feb 2021 12:31:55 -0500 Subject: Added sprite pausing All sprites are now paused when a cutscene starts and unpaused when it ends. Pausing means that the CharacterSystem and BehaviourSystem will not process them in their tick. This allows specific sprites to be unpaused during cutscenes if movement is needed. The player character is halted and made non-controllable by the script when the cutscene starts and made controllable again when it ends. It is important to remember that if interacting with a sprite that might be moving, you have to manually call Halt() on them in their script to make them stop moving. --- src/sprite.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sprite.h') diff --git a/src/sprite.h b/src/sprite.h index 4e3e490..35ca7aa 100644 --- a/src/sprite.h +++ b/src/sprite.h @@ -43,6 +43,7 @@ public: std::string alias; bool persistent = false; + bool paused = false; // Transform vec2i loc { 0, 0 }; -- cgit 1.4.1