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

phaser example Create From Sprite Config random generator issue #4369

Closed
sanadov opened this issue Feb 15, 2019 · 1 comment
Closed

phaser example Create From Sprite Config random generator issue #4369

sanadov opened this issue Feb 15, 2019 · 1 comment

Comments

@sanadov
Copy link

sanadov commented Feb 15, 2019

Version

Phaser v3.16.2

window 10

chrome
firefox

Description

trying to use phaser random with sprite config generator by following phaser example

it gives this error in chrome
phaser.min.js:1 Uncaught TypeError: Cannot read property 'integerInRange' of null

in firefox:
TypeError: n.RND is null

Example Test Code

let config = {
key: 'textureKey',
x: { randInt: [ 0, 10 ] },
y: { randInt: [ 0, 10 ] },
};
this.make.sprite(config);

Additional Information

related phaser 3 example
https://labs.phaser.io/view.html?src=src\animation\create%20from%20sprite%20config.js&v=3.16.2

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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