发新话题
打印

请问怎么让两个通道在固定时间假设10秒交互淡入淡出啊?

请问怎么让两个通道在固定时间假设10秒交互淡入淡出啊?

请问怎么让两个通道在固定时间假设10秒交互淡入淡出啊?每隔10秒中文透明度100,英文就0,英文100时,中文透明度就为0

TOP

请问怎么让两个通道在固定时间假设10秒交互淡入淡出啊?

global x -----对象blend的值 global x1 ----事件变量,防止x值矛盾 on exitFrame me go to the frame if x1=0 and x>0 then the timer=0 x=x-1 sprite(1).blend=x else if (the timer < 60 * 10) then sprite(1).blend=x else the timer=0 x=0 x1=1 end if end if if x1=1 and x<100 then x=x+1 sprite(1).blend=x else if (the timer < 60 * 10) then sprite(1).blend=x else the timer=0 x=100 x1=0 end if end if end

TOP

请问怎么让两个通道在固定时间假设10秒交互淡入淡出啊?

不行啊,我如果用timeout该如何设置呢,blend属性好设置,但是就不知道如何循环

TOP

请问怎么让两个通道在固定时间假设10秒交互淡入淡出啊?

[ADMINOPE=yfdmt|qingyu|威望由 2 增加至 3|有质量的回帖可增加威望,威望到3以后就可以申请VIP会员|1183203802]property pSwitch,pBlend
on beginsprite me
  pBlend = 1
  pSwitch = false
  starttimer
end
on exitFrame me
  if the timer < 60 * 10 then
    pSwitch = false
  else
    pSwitch = not pSwitch
  end if
  if pSwitch then
    if pBlend = 1 then
      sprite(1).blend = sprite(1).blend -10
      sprite(2).blend = sprite(2).blend +10
      if sprite(1).blend < 10 then
        pBlend = 0
        starttimer
      end if
    end if
    if pBlend = 0 then
      sprite(2).blend = sprite(2).blend -10
      sprite(1).blend = sprite(1).blend +10
      if sprite(2).blend < 10 then
        pBlend = 1
        starttimer
      end if
    end if
  end if
  
  go the frame
end

TOP

请问怎么让两个通道在固定时间假设10秒交互淡入淡出啊?

谢谢拉,就是这种效果

TOP

请问怎么让两个通道在固定时间假设10秒交互淡入淡出啊?

呵呵

TOP

请问怎么让两个通道在固定时间假设10秒交互淡入淡出啊?

有个问题,就是在出现后,相应消失的通道会有残影,

TOP

发新话题