Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextureManager.SpriteSheet: Invalid frameWidth given. #189

Open
debarko opened this issue May 2, 2018 · 1 comment
Open

TextureManager.SpriteSheet: Invalid frameWidth given. #189

debarko opened this issue May 2, 2018 · 1 comment

Comments

@debarko
Copy link

debarko commented May 2, 2018

The load spritesheet expects {frameWidth: x, frameHeight: y}. The line in question uses the Phaser 2 format. I think it might not work.

TextureManager.SpriteSheet: Invalid frameWidth given.

https://github.com/photonstorm/phaser-examples/blob/921295a5d7316e7f860a466644948f2eb32cf640/examples/phaser3/075%20blitter%20tilemap.js#L7

@paulzay
Copy link

paulzay commented Nov 5, 2020

this.load.spritesheet('tiles', 'assets/tilemaps/tiles/cybernoid.png', {
frameWidth: 16,
frameHeight: 16
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants