In today's episode we are going to create a pause effect that can be easily implemented into any game you may be working on. For this example we are going to build off of a minimalistic side scroller with only a few active objects.
Source code hosted on Github (pull, fork, or whatever you would like).
To implement the effect we will have o_player
(this would be any control object in your game), trigger an event that creates o_pause
which will handle all the logic for the effect.
o_player
is the easiest part to implement so we should just take care of it first.