4ucai Posted January 1, 2014 Share Posted January 1, 2014 Hi guys, I have set controls to move the camera with keys, However I noticed when I have camera.follow(sprite). The camera seems to be locked to the sprite. I tried removing reference to the sprite however it doesn't work. How do I "unfollow" the sprite? Thanks,Mike Link to comment Share on other sites More sharing options...
rich Posted January 1, 2014 Share Posted January 1, 2014 Set camera follow to null. Link to comment Share on other sites More sharing options...
4ucai Posted January 2, 2014 Author Share Posted January 2, 2014 I guess I might have done something if setting the camera follow to null isn't working =). Thanks rich. Link to comment Share on other sites More sharing options...
ForgeableSum Posted May 7, 2015 Share Posted May 7, 2015 It seems you also need to set game.camera.target = null in version 2.2.5+ (possibly earlier versions as well). don't set game.camera.follow to null as that will remove the follow function entirely. Link to comment Share on other sites More sharing options...
Recommended Posts