image

Michael Dobekidis has released a typewriter effect wrapper for Phaser. It allows you to create an effect where the letters of your text are written on one by one, at a speed and size you control. You can even loop background audio to go with it.

Initialize the typewriter anywhere in your game:

var typewriter = new Typewriter();
typewriter.init(gameInstance, options);

The pass necessary options like: context (the object that launches the typewriter)

typewriter.init(gameInstance, {
    x: 290,
    y: 40,
    fontFamily: "chillerBlack",
    fontSize: 26,
    maxWidth: 300,
    sound: reg.track,
    text: "Some text to be typed!"
  });
  typewriter.start();

Read More