Sam Posted December 23, 2014 Share Posted December 23, 2014 Hey,maybe I haven't catched the news but: are filters outdated in phaser 2.2?the examples do not seem to work and when I call: game.add.filter('lightBeam');I only get:undefined is not a functionThe filter was loaded before via game.load.scriptRegards Link to comment Share on other sites More sharing options...
horkoda Posted December 24, 2014 Share Posted December 24, 2014 Some examples probably weren't updated to use the new version of Phaser yet.Phaser is evolving quickly! Link to comment Share on other sites More sharing options...
Sam Posted December 26, 2014 Author Share Posted December 26, 2014 Yeah I know that. But filters don't work at all.game.add.filter returns : undefined is not a function...regards Link to comment Share on other sites More sharing options...
Sam Posted December 26, 2014 Author Share Posted December 26, 2014 Still can not get any filter to work with a blank project.seems like this is no longer working?game.add.filterinit game (WEBGL) etc.- just loading the filter script - creating the : game.add.filter("filtername");- updatefunc for filterI'm only getting the error: undefined is not a function - as result of game.add.filter.:/anybody knows what I'm doing wrong?regards Link to comment Share on other sites More sharing options...
Sam Posted December 27, 2014 Author Share Posted December 27, 2014 so it turns out that it isn't working at all also with a new blank project. with an old phaser version (1.2) there is no problem with using filters.phaser 2.2 just returns:undefined is not a functionif you want to use filters by. game.filter.add("filter name");can anybody reproduce the error? Link to comment Share on other sites More sharing options...
STuFF Posted December 28, 2014 Share Posted December 28, 2014 Filters are in separate files, you need to load them first (https://github.com/photonstorm/phaser/tree/master/filters) Link to comment Share on other sites More sharing options...
Sam Posted January 1, 2015 Author Share Posted January 1, 2015 *facepalm*thanks, this is what I needed, just something to remind myself what a dumbass I can be Link to comment Share on other sites More sharing options...
Recommended Posts