Learn how to create and use Phaser Signals in your own games.

Article by Richard Davey. Posted on 15th Jan 2018.   @photonstorm


This is a new tutorial from the PhaserGames site: "In my opinion, one of the best and most overlooked features of Phaser is the Signal class. With just a few steps you can create a clean global broadcasting system. It also eliminates the headache that javascript often causes with scopes and callbacks.

Here’s a quick example to show you how to do that.

I’ll be starting with the basic template and the dot image below.

Let’s create a dot that is either blue or pink and place in a random position. We will make a class that extends Phaser.Group called dot in the js folder."

Read More