TomFiveThumbs Posted June 3, 2014 Share Posted June 3, 2014 I'm having a lot of trouble with my tiled game, Everything loads fine, and the FPS is 60, but once the camera begins to follow the player the framerate takes a nosedive. I looked on some Phaser examples, and found that the example posted suffers from the same problem: http://examples.phaser.io/_site/view_full.html?d=tilemaps&f=sci+fly.js&t=sci%20fly Checking the code, I've loaded in my layers the same way. Nothing seems to be different. It just appears that Tilemaps + Game.Camera don't mix at the moment. Link to comment Share on other sites More sharing options...
valueerror Posted June 3, 2014 Share Posted June 3, 2014 how many layers do you have ? https://github.com/photonstorm/phaser/issues/839 Link to comment Share on other sites More sharing options...
TomFiveThumbs Posted June 3, 2014 Author Share Posted June 3, 2014 Hi valueerrorI have 3 layers.- platforms- decoration- and one with blue water tiles that shit behind the other two to plug some gaps between water and shore tilesOnly the platform one has collision. I also make objects like coins and hearts using the createfromobjects method. Link to comment Share on other sites More sharing options...
TomFiveThumbs Posted June 3, 2014 Author Share Posted June 3, 2014 Eerrr.. sit. Not shit. Stupid phone CharlesCraft50 1 Link to comment Share on other sites More sharing options...
mikeelindsay Posted January 8, 2015 Share Posted January 8, 2015 Has anyone else had an update on this? I created a ticket a few months ago and provided a few other examples of people who were experiencing the same thing. I'm using a machine with decent specs so I am unsure what could be bogging it down. The only thing keeping me from using Phaser currently is this. I just attempted it again because I wanted to use it for my next game but the issue persist. Any suggestions or a resolution? https://github.com/photonstorm/phaser/issues/542https://github.com/photonstorm/phaser/issues/1350 The SciFly example is also experiencing the same issue on my machine when the camera is scrolling. http://examples.phaser.io/_site/view_full.html?d=tilemaps&f=sci%20fly.js&t=sci%20fly&phaser_version=dev& Edit: this even appears to have a bit of laghttp://examples.phaser.io/_site/view_full.html?d=p2%20physics&f=tilemap+gravity.js&t=tilemap%20gravity Link to comment Share on other sites More sharing options...
Dougdomi Posted December 1, 2016 Share Posted December 1, 2016 Hi, I've fixed with (From 22FPS to 60FPS) : var water = map.createLayer('Water'); var land = map.createLayer('Land'); var details = map.createLayer('Details') water.renderSettings.enableScrollDelta = true; land.renderSettings.enableScrollDelta = true; details.renderSettings.enableScrollDelta = true; for each layer you enable enableScrollDelta. I recommend you use Phase.Graphics (or try a diff option to init you game app) new Phaser.Game(800, 600, Phaser.GRAPHICS, 'game', {preload: preload, create: create, update: update, render: render}); Link to comment Share on other sites More sharing options...
Recommended Posts