[]graphics使用matrix的异常情况
Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function()
{
var t = Laya.loader.getRes("../../res/apes/monkey2.png");
var ape = new Sprite();
ape.graphics.drawTexture(t, 0, 0);
ape.graphics.scale(1.01, 1)
Laya.stage.addChild(ape);
ape.pos(200, 0);
}));
上面这段代码并没有得到图片缩放的效果,看到的现象是图片一直在往左移动
{
var t = Laya.loader.getRes("../../res/apes/monkey2.png");
var ape = new Sprite();
ape.graphics.drawTexture(t, 0, 0);
ape.graphics.scale(1.01, 1)
Laya.stage.addChild(ape);
ape.pos(200, 0);
}));
上面这段代码并没有得到图片缩放的效果,看到的现象是图片一直在往左移动
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
cuixueying
赞同来自: