GreatBigBore Posted August 4, 2016 Share Posted August 4, 2016 So I've just learned, from the example on phaser.io, that you can set your sprite body to be a circle instead of a rectangle. This is exactly what I need. But when I tried it in my own code, I get an exception, and the Chrome debugger tells me that setCircle is not a function. The example on phaser.io works, so I figure I'll paste it into a js file on my own machine, and play with it to figure out why it works while mine fails. But the example won't run on my machine either, for the same reason: setCircle is not a function, at least according to Chrome. I forked my phaser lib from github, and I see setCircle there in the code, so I don't get it. And I did a git pull, so I'm up to date. I'm at a loss. Any ideas? Link to comment Share on other sites More sharing options...
rich Posted August 4, 2016 Share Posted August 4, 2016 What version of Phaser does it show in the console when you try to run it? Link to comment Share on other sites More sharing options...
GreatBigBore Posted August 4, 2016 Author Share Posted August 4, 2016 Phaser v2.4.4 | Pixi.js v2.2.9 | Canvas | WebAudio Link to comment Share on other sites More sharing options...
GreatBigBore Posted August 4, 2016 Author Share Posted August 4, 2016 Never mind, I dorked out and only did a pull from github. Forgot to fetch from your main repo. It works now. D'oh! Phaser v2.6.1 | Pixi.js | Canvas | WebAudio by the way Link to comment Share on other sites More sharing options...
Recommended Posts