You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if game.add.sprite (0,0) is the first call, then the sprite will be blank (so you can add Phaser.Graphics to it etc)
however if it is called with no texture supplied, after another sprite has been used with a texture previously, it uses that texture (although not at the same dimensions)
The text was updated successfully, but these errors were encountered:
A blank image is available for use on sprites that shouldn't be
rendered. This is necessary due to a bug introduced in Phaser 2.4.4
where sprites created without an image would default to the image
used by the previously created sprite.
phaserjs/phaser#2173
Signed-off-by: Zach Bennett <[email protected]>
it does not seem possible to add a blank sprite unless it is the first sprite created
http://phaser.io/sandbox/vXVjSgyw/play
if
game.add.sprite (0,0)
is the first call, then the sprite will be blank (so you can add Phaser.Graphics to it etc)however if it is called with no texture supplied, after another sprite has been used with a texture previously, it uses that texture (although not at the same dimensions)
The text was updated successfully, but these errors were encountered: