在 Livecode 中使用 iPad Retina 将对象的混合级别设置为淡入淡出不平滑



我为堆栈创建了6个图像,并将每个图像的blendlevel设置为0。我将这段代码输入到堆栈中:

on preopenstack
   set the fullscreenmode of this stack to "exactFit"
   if environment() is "mobile" then
      set the acceleratedRendering of this stack to true
   else
      set the acceleratedRendering of this stack to false
   end if
end preopenstack
on openstack
   if the platform contains "iphone" then
      set the compositorType of this stack to "Static OpenGL"
   end if
end openstack

我把这段代码输入到我的卡上:

on fadeControl nImg,bLV
    lock screen
    set the blendLevel of img nImg to bLV
    subtract 5 from bLV
    if bLV > 0 then
        send "fadeControl" && (nImg) & "," & bLV & ",5" to me in 0 milliseconds
    else
        send "fadeControl" && (nImg+1) & "," & bLV & ",5" to me in 0 milliseconds
    end if
    unlock screen
end fadeControl

当我在桌面上测试时是流畅的。但是当我在iPad上测试时,Retina并不流畅。

如何解决这个问题?我的livecode版本是6.6.2(稳定版)

尝试使用视觉效果。

on fadeControl nImg
   lock screen for visual effect in rect (the rect of img nImg)
   hide img nImg
   unlock screen with visual effect dissolve very fast
end fadeControl

最新更新