function preload () { this.load.image('arrow', 'assets/sprites/arrow.png'); } function create () { var frame = this.add.image(40 + a * 2, 300, 'arrow').setAngle(a); }