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
this works in previous verison but 3.13.
the problems:
can't pass width/height as 0
when pass width/height as 1 and finally created a tileSprite, but you will find both spr.frame.width, spr.frame.height are 0 which does not exist in previous version.
The text was updated successfully, but these errors were encountered:
jcyuan
changed the title
add.tileSprite in new version is not convenience to use
add.tileSprite in new version is not convenient to use
Sep 28, 2018
If you now pass zero as either the width or height of a TileSprite it will use the size of the texture frame as the width and height. If you want to change it like you were doing before, you need to get the size from the displayTexture and displayFrame properties, not texture and frame which just refer to the canvas the texture has been drawn to.
in previous version I can pass width/height with 0 to add.tileSprite
add.tileSprite(x, y, w, h, atlas, frame)
;but in 3.13 pass width/height with 0 will cause error because the class wants to fetch imageData from the canvas.
my purpose is to create a tileSprite and use its frame to init the width / height:
this works in previous verison but 3.13.
the problems:
spr.frame.width, spr.frame.height
are 0 which does not exist in previous version.The text was updated successfully, but these errors were encountered: