proyecto26 / ion-phaser

A web component to use Phaser Framework with Angular, React, Vue, etc 🎮
https://market.ionicframework.com/plugins/ionphaser
MIT License
251 stars 39 forks source link

Sprites Floats Away When Added to Scene Groups #19

Closed eltopus closed 4 years ago

eltopus commented 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.

eltopus commented 4 years ago

My bad, I had gravity: { y: 400 }, in the game configuration