I am implementing levels in my game. When a stage marker is reached I want many events, for example keyboard controls and various animations to no longer work.
At the moment I am going though and putting extra conditions on all those events.
i.e., if not Player.EndofStageReached then Do_Keyboard etc
I was thinking is it perhaps possible to have
if not Player.EndofStageReached then
begin
all the events
in here
end;