FrankCheng Posted September 7, 2015 Share Posted September 7, 2015 var game = new Phaser.Game(800, 600, Phaser.WEBGL, "example", { preload: preload, create: create }); function preload() { game.load.image('sky', 'assets/skies/deepblue.png'); game.load.image('dragonTexture', 'assets/creature/dragon.png'); game.load.json('dragonMesh', 'assets/creature/dragon.json'); } var dragon = null; function create() { game.add.image(0, 0, 'sky'); dragon = game.add.creature(450, 350, 'dragonTexture', 'dragonMesh'); dragon.scale.set(25.0); dragon.play(true); // true = loop } Link to comment Share on other sites More sharing options...
rich Posted September 7, 2015 Share Posted September 7, 2015 You're using a build of Phaser that doesn't include Creature. Link to comment Share on other sites More sharing options...
Recommended Posts