We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If 9sliced sprites must be rendered at the first frame after loading, defining size by setting .height and .width is not applying to them.
.height
.width
This won't work:
k.loadSprite('mainMenu', 'sprites/mainMenuFrame.png', { slice9: { left: 64, right: 64, top: 64, bottom: 64, }, }); const dialog = k.add([ k.pos(k.width() / 2 - 200, 300), k.sprite('mainMenu'), ]); dialog.width = 400; dialog.height = 300;
await k.wait(0); before adding fixing that as well.
await k.wait(0);
3001.0.9
Sprites must change size
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
If 9sliced sprites must be rendered at the first frame after loading, defining size by setting
.height
and.width
is not applying to them.This won't work:
await k.wait(0);
before adding fixing that as well.Version
3001.0.9
To Reproduce
Expected behavior
Sprites must change size
The text was updated successfully, but these errors were encountered: