Closed eltopus closed 4 years ago
I am using ion-phaser to integrate phaser with react. I cloned the phaser-react example and made minor tweaks.
I created some sprites in a fixed x, y position. However, when I add them to scene group such as
this.group.addMultiple(sprites)
the sprites float downwards out of screen range into infinity. In other words, they slowly move downwards and out of screen range.
My bad, I had gravity: { y: 400 }, in the game configuration
I am using ion-phaser to integrate phaser with react. I cloned the phaser-react example and made minor tweaks.
I created some sprites in a fixed x, y position. However, when I add them to scene group such as
this.group.addMultiple(sprites)
the sprites float downwards out of screen range into infinity. In other words, they slowly move downwards and out of screen range.