Closed DouglasLapsley closed 6 years ago
Just a quick follow up to this. This morning I opened the project again and the scaling is correct. I didn't restart the computer or anything (it was on over night). Nothing in the project has changed since last running it. So this is clearly a bit more random than it seemed. The times that I've had this issue it has been consistently the same sprites causing the issues (I've seen this issue on three separate occasions of the last couple of weeks). So I am surprised that the background that was failing yesterday is now suddenly working.
Another follow up. I also just opened a different game that was having the same issue and that too is now working perfectly. I am wondering if it might be something to do with Angular 4 (which I am using). I have sometimes seen it require a full recompile rather than a reload for newly updated assets to be properly included. The only difference I can see this morning is that I recompiled the Angular app rather than just letting it live reload.
I'm going to close this issue off in the hope that it was just an Angular issue like you said. However, if it reoccurs and can be reproduced consistently then please open a new issue and we can investigate.
Version: 3.3.0
For some reason tileSprite will sometimes scale the background image in the Y direction. This consistantly happens with some sprites and not others.
Here is the sprite sheet file:
The sprite sheet json is:
In the preload function I have:
In the create function I have:
I get the following displayed:
You can see that the top image has been scaled in the Y direction.
I had this on another game I was working on a week or so back with a previous version of Phaser as well, although I don't remember which build it was.
Thanks!